Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow default loading of more than one Instrument Parameter File #6481

Closed
OwenArnold opened this issue Jul 20, 2012 · 1 comment
Closed

Allow default loading of more than one Instrument Parameter File #6481

OwenArnold opened this issue Jul 20, 2012 · 1 comment
Assignees
Milestone

Comments

@OwenArnold
Copy link
Contributor

Instrument Parameter Files shipped with Mantid, with the name InstrumentName_Parameters.xml, that live in the instrument directory are automatically loaded when mantid loads data for a specific instrument.

So e.g. if we have in the instrument folder:

HRPD_Instrument_1.xml
HRPD_Instrument_2.xml
HRPD_Instrument_3.xml
HRPD_Parameters.xml

Then when any of the HRPD_Instrument_#.xml are loaded HRPD_Parameters.xml are then subsequenctly loaded.

Expand this so that if the instrument folder contains the files:

HRPD_Instrument_1.xml
HRPD_Instrument_2.xml
HRPD_Instrument_3.xml
HRPD_Parameters.xml
HRPD_Parameters_2.xml

then for this example HRPD_Parameters.xml is loaded after HRPD_Instrument_1.xml and HRPD_Instrument_3.xml are loaded and HRPD_Parameters_2.xml is loaded after HRPD_Instrument_2.xml.

Hence if a parameter file with a matching name exist than it takes precedence to the 'default' parameter file (which in the above example is HRPD_Parameters.xml)

Once implemented update IDF wiki accordingly

@OwenArnold
Copy link
Contributor Author

This issue was originally trac ticket 5635

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants