Ticket #3794 (closed: invalid)

Opened 9 years ago

Last modified 5 years ago

SaveMD after MergeMD

Reported by: Owen Arnold Owned by: Janik Zikovsky
Priority: critical Milestone: Release 2.0
Component: Mantid Keywords:
Cc: Blocked By:
Blocking: Tester: Owen Arnold

Description

Can successfully create an merged MDEW using the following script. However, The saving algorithm seems to get confused with the output and it's therefore not possible to save out my merged workspace.


import time LoadEventNexus(Filename='C:/mantid/Test/AutoTestData/CNCS_7860_event.nxs', OutputWorkspace='CNCS_7860_event_NXS',CompressTolerance='0.10000000000000001')

start = time.time(); for omega in xrange(0, 20):

print "Starting omega %03d degrees" % omega CreateMDWorkspace(Dimensions='3',Extents='-5,5,-5,5,-5,5',Names='Q_sample_x,Q_sample_y,Qsample_z',Units='A,A,A',SplitInto='5',SplitThreshold='2000',MaxRecursionDepth='3',

MinRecursionDepth='3', OutputWorkspace='CNCS_7860_event_MD')

# Convert events to MD events AddSampleLog("CNCS_7860_event_NXS", "omega", "%s" % omega, "Number Series") AddSampleLog("CNCS_7860_event_NXS", "chi", "%s" % 0, "Number Series") AddSampleLog("CNCS_7860_event_NXS", "phi", "%s" % 0, "Number Series") ConvertToDiffractionMDWorkspace(InputWorkspace='CNCS_7860_event_NXS',OutputWorkspace='CNCS_7860_event_MD',OutputDimensions='Q (sample frame)',LorentzCorrection='1')

SaveMD("CNCS_7860_event_MD", "C:/Users/spu92482/Desktop/CNCS/CNCS_7860_event_rotated_%03d.nxs" % omega) print time.time() - start, " seconds since start."

Attachments

cantsave.png (110.0 KB) - added by Owen Arnold 9 years ago.

Change History

Changed 9 years ago by Owen Arnold

comment:1 Changed 9 years ago by Janik Zikovsky

  • Status changed from new to verify
  • Resolution set to invalid

The problem is with the saved properties in the configuration which were done in a previous version. If you wipe your config file under ~/.config/ISIS/ it will reset the algorithm properties.

It is no longer possible (via the GUI) to check both boxes so it should never save them as such in the config file.

comment:2 Changed 9 years ago by Owen Arnold

  • Status changed from verify to verifying
  • Tester set to Owen Arnold

comment:3 Changed 9 years ago by Owen Arnold

  • Status changed from verifying to closed

That worked.

comment:4 Changed 9 years ago by Nick Draper

  • Milestone changed from Iteration 31 to Iteration 32

moved to iteration 32

comment:5 Changed 5 years ago by Stuart Campbell

This ticket has been transferred to github issue 4641

Note: See TracTickets for help on using tickets.