Ticket #4832 (closed: fixed)
Enable LoadMask to support ISIS mask file format
Reported by: | Wenduo Zhou | Owned by: | Wenduo Zhou |
---|---|---|---|
Priority: | major | Milestone: | Release 2.1 |
Component: | Mantid | Keywords: | |
Cc: | petersonpf@…, campbellsi@… | Blocked By: | |
Blocking: | Tester: | Andrei Savici |
Description
ISIS uses another format for mask file other than XML format. LoadMask is required to support this type of mask file too.
The format of this type of mask file is described in method "load_mask" of /Code/Mantid/scripts/Inelastic/CommonFunctions.py.
Here is the definition of the format of this type of masking file.
- There are two types of unit presentation for spectrum or spectra list
- a : a single spectrum with ID a
- a-b / a - b / a- b / a- b: a list of spectra with IDs ranging from a to b. (a <= b)
- Each line can contain one or more than one unit described above. Two adjacent ones will be separated by space or spaces;
- File contains one or multiple line.
- No tab is allowed.
- Comment line is supported. The first none space character of a comment line CANNOT be a digit.
Change History
comment:2 Changed 9 years ago by Wenduo Zhou
Add unit test and fixed bug. Refs #4832.
Changeset: af173edddfaf4bc5bad6619835ffa97d16f97036
comment:4 Changed 9 years ago by Wenduo Zhou
- Status changed from accepted to verify
- Resolution set to fixed
comment:5 Changed 9 years ago by Wenduo Zhou
Try to fix failure on build server. Refs #4832.
Changeset: 21ed4c82edb4e636b6ea06116a3209c5d5f46d16
Note: See
TracTickets for help on using
tickets.
Add support of ISIS format. Refs #4832.
No unit test added so far.