Cycle 23/3 fixes and new features for 23/4 #3
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Various bugfixes identified during cycle 23/3:
Ei_list
by user instead of the Ei found byGetEi
- this ensures that files with the same nominal Ei can be subtractedwhitevan
is a list (for summed white-vans)nxs
to reduce file size (is now comparable tonxspe
in size for powders - around 2-3MB).ws_norm
,ws_corrected
,ws_out
) which are essentially clones/copies of the full event workspace. For each rep a single temporary workspace (ws_rep
) is created by cropping to the relevant ToF region (defined byErange
) and operated upon.New features implemented for cycle 23/4:
Ei_list = 'auto'
to use the auto-Ei feature.sumruns=True
will split this into multiple reduced files based on a log block value (e.g. split into different angles for Horace or temperatures, fields, etc. in a sweep). Enabled by settingcs_block
to the name of a valid log block, andcs_bin_size
to non-zero. Must havesame_angle_action='ignore'
.iliad
function driver for people who don't want to run through the file. This is used as follows:This actually uses the
DG_*
scripts in the same directory (presumably the user's RB folder) so if you've changed anything in those files, they will be used by theiliad
function. Asiliad
reads theDG_*
script there are now markers#!begin_params
and#!end_params
which must be kept in the file to letiliad
know what are parameters. It will use the values in theDG_*
files as default but you can override any parameter by specifying it as a keyword argument to iliad. The exceptions are:runno
is used instead ofsample
ei
is used instead ofEi_list
wbvan
is used instead ofwhitevan
sam_mass
is used instead ofsample_mass
sam_rmm
is used instead ofsample_fwt
This is to ensure compatibility with the old
iliad
scripts. In addition the old parametershard_mask_file
andsum_runs
will be recognised and interpreted asmask
andsumruns
in the new scripts.