Ticket #7920 (closed: fixed)

Opened 7 years ago

Last modified 5 years ago

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:1 Changed 7 years ago by Peter Peterson

  • Status changed from new to inprogress

Re #7920. Use same python intepreter to launch threads.

Changeset: b104a58d04f7caa7d3e3fda2013dc7603b283d31

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:3 Changed 7 years ago by Vickie Lynch

  • Status changed from verify to verifying

comment:4 Changed 7 years ago by Vickie Lynch

  • Status changed from verifying to closed

Merge remote branch 'origin/bugfix/7920_reduce_scd_parallel'

comment:5 Changed 7 years ago by Vickie Lynch

Tested by running parallel reduction on topaz2 using this script with python2.6 and it works now.

comment:6 Changed 5 years ago by Stuart Campbell

This ticket has been transferred to github issue 8765

Note: See TracTickets for help on using tickets.