Ticket #10999 (closed: fixed)

Opened 6 years ago

Last modified 5 years ago

Fix error in concatenating string and run number in PostProcessAdmin (ISIS)

Reported by: Ian Bush Owned by: Lottie Greenwood
Priority: major Milestone: Release 3.4
Component: Tools Keywords:
Cc: lottie.greenwood@…, marcus.noble@… Blocked By:
Blocking: Tester: Ian Bush

Description

In the ISIS post processor there is a bug when trying to concatenate an integer (from JSON) and a string.

The problem line is:

run_output_dir = TEMP_ROOT_DIRECTORY + instrument_dir[:instrument_dir.find('/'+ self.data['run_number'])+1]

self.data['run_number']+` comes out as an integer, causing a crash.

Change History

comment:1 Changed 6 years ago by Ian Bush

Currently fixed on the autoreduction server, in /usr/bin/PostProcessAdmin.py as:

run_output_dir = TEMP_ROOT_DIRECTORY + instrument_dir[:instrument_dir.find('/'+ str(self.data['run_number']))+1]

comment:2 Changed 6 years ago by Lottie Greenwood

  • Status changed from new to assigned

comment:3 Changed 6 years ago by Lottie Greenwood

  • Status changed from assigned to verify
  • Resolution set to fixed

comment:4 Changed 6 years ago by Ian Bush

  • Status changed from verify to verifying
  • Tester set to Ian Bush

comment:5 Changed 6 years ago by Ian Bush

  • Status changed from verifying to closed

comment:6 Changed 6 years ago by Nick Draper

  • Milestone changed from Backlog to Release 3.4

moved to r 3.4 as tickets are closed

comment:7 Changed 5 years ago by Stuart Campbell

This ticket has been transferred to github issue 11838

Note: See TracTickets for help on using tickets.