Skip to content

Commit

Permalink
Merge pull request mantidproject#18734 from mantidproject/HFIR_GPSANS…
Browse files Browse the repository at this point in the history
…_Fix_Patch_v39

HFIR GPSANS Bug readY and E from detector id...
  • Loading branch information
AndreiSavici authored Feb 7, 2017
2 parents 8f6522f + a98a887 commit ddd36a5
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@ def __patch_workspace(self, tube_in_input_ws, in_ws, patch_ws):
id_to_fit.append(detector_id)
elif not inputDetInfo.isMasked(detector_idx):
id_to_calculate_fit.append(detector_id)
y_to_calculate_fit.append(in_ws.readY(detector_id).sum())
e_to_calculate_fit.append(in_ws.readE(detector_id).sum())
y_to_calculate_fit.append(in_ws.readY(detector_idx).sum())
e_to_calculate_fit.append(in_ws.readE(detector_idx).sum())

degree = self.getProperty("DegreeOfThePolynomial").value
# Returns coeffcients for the polynomial fit
Expand Down

0 comments on commit ddd36a5

Please sign in to comment.