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

ISIS Reduction does not change instrument #14103

Merged
merged 7 commits into from
Nov 2, 2015

Conversation

abuts
Copy link
Member

@abuts abuts commented Oct 23, 2015

Resolves #11946

Its easy to test this ticket -- just change facility to e.g. SNS with any instrument and run a ISIS_Direct inelastic system test from Mantid. (e.g. Mantid\Testing\SystemTests\tests\analysis\ISIS_MariReduction.py -- the fastest one, either it passes or not on tester's machine (will fail if you do not have all files necessary for it to run) ) Before the changes after trying MARIReduction you will see facility changed to ISIS and instrument to MARI (for MARIReduction or appropriate for other ISIS direct instrument) No modification to default facility or instrument should happen after this change.

Changes to code is not so easy to follow as there were number of places where reduction was implicitly relying on default facility and instrument. The fact that system and unit tests pass give me confidence that I've identified and fixed all such places.

As the changes are entirely internal, I do not think any release note is necessary.

Though facility still should change
to work with incorrect instrument
@abuts abuts added Component: Python Direct Inelastic Issues and pull requests related to direct inelastic labels Oct 23, 2015
@abuts abuts changed the title Reduction does not change instrument ISIS Reduction does not change instrument Oct 27, 2015
@abuts abuts added this to the Release 3.6 milestone Oct 27, 2015
@FedeMPouzols FedeMPouzols self-assigned this Oct 30, 2015
@FedeMPouzols
Copy link
Contributor

Works well. All the ISISDirectInelastic tests pass, and after these changes the facility/instrument is not changed.

FedeMPouzols added a commit that referenced this pull request Nov 2, 2015
…angeInstrument

ISIS Reduction does not change instrument
@FedeMPouzols FedeMPouzols merged commit 242f209 into master Nov 2, 2015
@FedeMPouzols FedeMPouzols deleted the 11946_ReductionDoesNotChangeInstrument branch November 2, 2015 09:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Direct Inelastic Issues and pull requests related to direct inelastic
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Direct reduction scripts should not set the default instrument
2 participants