Skip to content
Snippets Groups Projects
Commit eb1841a8 authored by Cammille Carinan's avatar Cammille Carinan
Browse files

Improve SCS_slowTrain call

parent 5b7c7ed6
No related branches found
No related tags found
1 merge request!170hRIXS functions
......@@ -307,12 +307,10 @@ class hRIXS:
if proposal is None:
proposal = cls.PROPOSAL
run, data = tb.load(proposal,
runNB=runNB,
fields=['hRIXS_det', 'SCS_slowTrain'])
run, data = tb.load(proposal, runNB=runNB, fields=['hRIXS_det'])
# Get slow train data
mnemo = tb.mnemonics['SCS_slowTrain'][0]
mnemo = tb.mnemonics_for_run(run)['SCS_slowTrain']
slow_train = run[mnemo['source'], mnemo['key']].ndarray().sum()
return cls(images=data['hRIXS_det'][1 if first_wrong else 0:].data,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment