Skip to content

Copy Params to Format/Save Params to File throws error for Multiplicity models #2369

@smk78

Description

@smk78

Describe the bug
Whilst using the Unified_Power_rg model, User JamesD observed that trying to 'Copy params to Format' or 'Save Params to File' throws errors and does not work. The bug is easily to replicate.

15:23:15 - ERROR: Traceback (most recent call last):
  File "sas\qtgui\Perspectives\Fitting\FittingPerspective.py", line 120, in onExcelCopy
  File "sas\qtgui\Perspectives\Fitting\FittingWidget.py", line 3891, in onCopyToClipboard
  File "sas\qtgui\Perspectives\Fitting\FittingUtilities.py", line 806, in formatParametersExcel
IndexError: list index out of range
15:23:26 - ERROR: Traceback (most recent call last):
  File "sas\qtgui\Perspectives\Fitting\FittingPerspective.py", line 214, in onParamSave
  File "sas\qtgui\Perspectives\Fitting\FittingWidget.py", line 3896, in onCopyToClipboard
  File "sas\qtgui\Perspectives\Fitting\FittingUtilities.py", line 806, in formatParametersExcel
IndexError: list index out of range

To Reproduce
Run SasView and load up the Shape Independent > unified_power_Rg model
Compute the model
Attempt to Edit > Copy Params to Format/Save Params to File

Expected behavior
The model parameters should be exported. Though slightly different, this functionality works in 4.2.2

Workaround
Edit > Copy Params does work, but the format is not intended for the same use that Copy Params to Format/Save Params to File are

SasView version
Reproduced in 5.0.5, 5.0.4 & 5.0.3 so appears to be a general bug in 5.x

Operating system (please complete the following information):
x64/W10

Metadata

Metadata

Assignees

Labels

DefectBug or undesirable behaviourFor Feature ParityIssues to give 5x the same functionality as 4xMultiplicityIssue related to handling of multiplicity

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions