Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LineCuts units #9835

Closed
1 task done
OwenArnold opened this issue Feb 11, 2014 · 1 comment
Closed
1 task done

LineCuts units #9835

OwenArnold opened this issue Feb 11, 2014 · 1 comment
Assignees
Labels
Extra Attention Testers and Gate keepers should pay extra attention as this affects core aspects. Framework Issues and pull requests related to components in the Framework High Priority An issue or pull request that if not addressed is severe enough to postponse a release.
Milestone

Comments

@OwenArnold
Copy link
Contributor

This ticket is blocked by :

This ticket is blocks : TRAC9046

In most cases, MD line cuts should have axes and units reported w.r.t their origin workspace. I generated a work around for this issue here http://trac.mantidproject.org/mantid/ticket/8104, but there should be a good way to access this information on the generated MDWorkspaces.

The following script illustrates the problem. The generated plot lines should completely overlap.

#!python
CreateMDWorkspace(Dimensions='2',EventType='MDEvent',Extents='-10,10,-10,10',Names='Q_lab_x,Q_lab_y',Units='A,B',OutputWorkspace='test')
FakeMDEventData(InputWorkspace='test',UniformParams='1000',PeakParams='100000,0,0,1')

line_md = BinMD(InputWorkspace='test',AxisAligned='0',BasisVector0='X,units,0.888154,0.459545',BasisVector1='Y,units,-0.459545,0.888154',Translation='-4.93562,-2.3918',OutputExtents='0,9.61632,-0.1,0.1',OutputBins='100,1')
save_path = "/Users/spu92482/Desktop/line_md.nxs"
SaveMD(Filename=save_path, InputWorkspace=line_md)
reloaded_line_md = LoadMD(Filename=save_path)
plotMD([line_md, reloaded_line_md]) # Should be the same!!!!

Keywords: CORE PatchCandidate

@OwenArnold
Copy link
Contributor Author

This issue was originally trac ticket 8992

@OwenArnold OwenArnold added High Priority An issue or pull request that if not addressed is severe enough to postponse a release. Framework Issues and pull requests related to components in the Framework Extra Attention Testers and Gate keepers should pay extra attention as this affects core aspects. labels Jun 3, 2015
@OwenArnold OwenArnold self-assigned this Jun 3, 2015
@OwenArnold OwenArnold added this to the Release 3.1.1 milestone Jun 3, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Extra Attention Testers and Gate keepers should pay extra attention as this affects core aspects. Framework Issues and pull requests related to components in the Framework High Priority An issue or pull request that if not addressed is severe enough to postponse a release.
Projects
None yet
Development

No branches or pull requests

1 participant