Skip to content

Commit

Permalink
Fix numpy issue with IntArrayProperty
Browse files Browse the repository at this point in the history
Refs #10215
  • Loading branch information
DanNixon committed Sep 26, 2014
1 parent 3a5b61b commit 943bb7b
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -31,7 +31,7 @@ def PyInit(self):
doc='Range of detectors to use.')

self.declareProperty(name='RebinParam', defaultValue='',
doc='Rebin parameters')
doc='Rebin parameters.')

self.declareProperty(WorkspaceGroupProperty('OutputWorkspaceGroup', '',
direction=Direction.Output, optional=PropertyMode.Optional),
Expand Down Expand Up @@ -88,7 +88,7 @@ def PyExec(self):

reducer = MSGDiffractionReducer()
reducer.set_instrument_name(instrument_name)
reducer.set_detector_range(detector_range[0] - 1, detector_range[1] - 1)
reducer.set_detector_range(int(detector_range[0] - 1), int(detector_range[1] - 1))
reducer.set_parameter_file(ipf_filename)
reducer.set_sum_files(sum_files)
reducer.set_save_formats(save_formats)
Expand Down

0 comments on commit 943bb7b

Please sign in to comment.