Skip to content

Commit

Permalink
re #8435: SANS Reduction
Browse files Browse the repository at this point in the history
this is a temporary comment to explain why this code still works. It is
my intention to get rid of the _setUpPeriod method by applying a better
way of ensuring the execution of multiperiod data.
  • Loading branch information
gesnerpassos committed Nov 14, 2013
1 parent 76e8cf2 commit 6beb096
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Code/Mantid/scripts/SANS/ISISCommandInterface.py
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,11 @@ def GetMismatchedDetList():
return ReductionSingleton().instrument.get_marked_dets()

def _setUpPeriod(i):
# it first get the reference to the loaders, then it calls the AssignSample
# (which get rid of the reducer objects (see clean_loaded_data())
# but because we still get the reference, we can use it to query the data file and method.
# ideally, we should not use this _setUpPeriod in the future.

trans_samp = ReductionSingleton().samp_trans_load
can = ReductionSingleton().get_can()
trans_can = ReductionSingleton().can_trans_load
Expand Down

0 comments on commit 6beb096

Please sign in to comment.