Ticket #7920 (closed: fixed)
Use same python version in ReduceSCD_Parallel
Reported by: | Peter Peterson | Owned by: | Peter Peterson |
---|---|---|---|
Priority: | major | Milestone: | Release 3.0 |
Component: | Diffraction | Keywords: | |
Cc: | lynchve@…, tmclark326@… | Blocked By: | |
Blocking: | Tester: | Vickie Lynch |
Description
On topaz.sns.gov there are two versions of python: 2.6 and 2.7. 2.7 is the default. Since mantid is compiled with 2.6 this is a problem. If one directly uses python2.6 to start ReduceSCD_Parallel.py (as they should) the inner script that is run for a single run uses the default python. The fix is to use sys.executable rather than python on line 90. Unfortunately that can return None so trap for this and use the default python instead of failing.
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
To test: just review the code on bugfix/7920_reduce_scd_parallel and try to run the script. Tara is probably the best tester at this point.
comment:4 Changed 7 years ago by Vickie Lynch
- Status changed from verifying to closed
Merge remote branch 'origin/bugfix/7920_reduce_scd_parallel'
Re #7920. Use same python intepreter to launch threads.
Changeset: b104a58d04f7caa7d3e3fda2013dc7603b283d31