Ticket #1997 (closed: fixed)
Allow multiple IDFs for single instrument
Reported by: | Anders Markvardsen | Owned by: | Anders Markvardsen |
---|---|---|---|
Priority: | major | Milestone: | Iteration 26 |
Component: | Mantid | Keywords: | |
Cc: | Blocked By: | ||
Blocking: | Tester: | Janik Zikovsky |
Description
Allow notation in IDF:
1) <instrument name="CSP"
valid-from="yyyy-mm-ddThh:mm:ss" valid-to="yyyy-mm-ddThh:mm:ss">
2) Any number of say CSP_Definition#####.xml to be shipped with Mantid, where ##### is any string of any length
3) Add test to check that none of the valid-from to valid-to overlap for a given instrument
4) upon loading a raw file or any of the nexus files grap the date and load the appropriate IDF
Change History
comment:8 Changed 10 years ago by Anders Markvardsen
(In [7948]) Extend LoadInstrument to include the input properties:
InstrumentName
This means there will be two input properties which can be used to specify and IDF:
Filename InstrumentName
If Filename is specified then use that this filename. If not then it is required that an InstrumentName is specified. And an appropriate filename is created at runtime (search the Workspace's Run object for "startdate"/"starttime" and get IDF search directory from Config)
Modify all loaders (except LoadEmptyInstrument) to load inst using this InstrumentName property re #1997
comment:10 Changed 10 years ago by Anders Markvardsen
comment:11 Changed 10 years ago by Anders Markvardsen
comment:12 Changed 10 years ago by Anders Markvardsen
comment:13 Changed 10 years ago by Anders Markvardsen
(In [7977]) Surprisingly painstaking to knock isis dates into iso 8601...
Introduced two now Workspace Run object properties:
run_end run_start
which stores date-time in iso 8601, for now this is done in LoadRawHelper and LoadISISNexus2.
wiki http://www.mantidproject.org/Run updated.
re #1997
comment:14 Changed 10 years ago by Russell Taylor
comment:15 Changed 10 years ago by Anders Markvardsen
comment:16 Changed 10 years ago by Anders Markvardsen
comment:18 Changed 10 years ago by Anders Markvardsen
- Status changed from accepted to verify
- Resolution set to fixed
comment:19 Changed 10 years ago by Janik Zikovsky
- Status changed from verify to verifying
- Tester set to Janik Zikovsky
comment:20 Changed 10 years ago by Janik Zikovsky
- Status changed from verifying to closed
Good stuff, tried in with dummy TOPAZ instrument files. See #2074 for changes for SNS instruments.
comment:21 Changed 5 years ago by Stuart Campbell
This ticket has been transferred to github issue 2844
(In [7781]) Added valid-from and valid-to tags to all instrument as e.g.
<instrument name="ARCS" valid-from ="1900-01-31 23:59:59"
Also added optional last-modified tag which takes the role of the previous optional date tag.
valid-from and valid-to will be compulsory tags and some code added to check this.
no wiki doc yet
removed unused WISH IDFs
re #1997