Ticket #8565 (closed: fixed)
Remove findnexus from the ReduceSCD scripts
Reported by: | Peter Peterson | Owned by: | Peter Peterson |
---|---|---|---|
Priority: | major | Milestone: | Release 3.1 |
Component: | Diffraction | Keywords: | |
Cc: | Blocked By: | #8554 | |
Blocking: | Tester: | Vickie Lynch |
Description
Since the mantid framework provides this functionality, just use that. The important bits for doing it are hiding in stresstesting.py near line 120:
def __verifyRequiredFile(self, filename): '''Return True if the specified file name is findable by Mantid.''' from mantid.api import FileFinder # simple way is just getFullPath which never uses archive search if os.path.exists(FileFinder.getFullPath(filename)): return True # try full findRuns which will use archive search if it is turned on try: candidates = FileFinder.findRuns(filename) for item in candidates: if os.path.exists(item): return True except RuntimeError, e: return False # file was not found return False
Put a modified version of this in the SCD scripts.
Change History
comment:2 Changed 7 years ago by Peter Peterson
- Status changed from inprogress to verify
- Resolution set to fixed
- Tester set to Vickie Lynch
This is on feature/8565_findnexus and hopefully Vickie will try it out.
comment:5 Changed 7 years ago by Vickie Lynch
- Status changed from verifying to closed
Script found nexus file on analysis machine
comment:6 Changed 7 years ago by Vickie Lynch
Merge remote branch 'origin/feature/8565_findnexus'
Full changeset: 670b76df66230d0c3674ce5f45eb57a880c42dfc
Note: See
TracTickets for help on using
tickets.
Re #8565. Removed findnexus from the script.
Changeset: 1754aa8eae4152716775a95fd8449fd371af1cc1