You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
martyngigg opened this issue
May 21, 2013
· 3 comments
Assignees
Labels
FrameworkIssues and pull requests related to components in the FrameworkStaleThis label is automatically applied to issues that are automatically closed by the stale bot
I have a simple algorithm (attached) to add a linear correction to the data in a workspace. It's fine with a freshly loaded run file but fails with a strange error if I run it on the output of "ConjoinSpectra()":
Error in execution of algorithm Apply2DLinearCorrection:
__class__ assignment: 'MatrixWorkspace' object layout differs from 'MatrixWorkspace'
at line 18 in 'C:/MantidInstall/UserAlgorithms/Apply2DLinearCorrection.py'
What's wrong? The offending line is simply
ows=WorkspaceFactory.create(iws)
as I want a copy of the workspace with the same axis labels, number of bins, etc.
(I was actually using my hacked version of ConjoinSpectra which makes the Y (spectrum) axis numeric, for doing 2D plots, and which I'll upload to the Script Repository soon, but have reproduced the same behaviour with the standard one)
James Lord.
And also
Follow up to this: if I feed the offending workspace from ConjoinSpectra() through Transpose() I can now run my algorithm on it successfully, so that seems to clear up the different object layout or whatever. I haven't done a thorough search of which algorithms cause or cure this bug.
The text was updated successfully, but these errors were encountered:
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. If you feel this is incorrect please comment to keep it alive, with a reason why.
To prevent closure, e.g. for long-term planning issues, add the "Never Stale" label.
stalebot
added
the
Stale
This label is automatically applied to issues that are automatically closed by the stale bot
label
Feb 24, 2021
FrameworkIssues and pull requests related to components in the FrameworkStaleThis label is automatically applied to issues that are automatically closed by the stale bot
This issue was originally TRAC 7151
James Lord has spotted:
And also
The text was updated successfully, but these errors were encountered: