Skip to content

Commit

Permalink
Copy X unit properly
Browse files Browse the repository at this point in the history
Refs #7860
  • Loading branch information
DanNixon committed Oct 17, 2014
1 parent 927ad0f commit 6a3bd52
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -91,7 +91,7 @@ def PyExec(self):
logger.notice('New array length = %d' % new_array_len)
logger.notice('Output array LR split index = %d' % output_cut_index)

x_unit = mtd[self._sample].getXDimension().getUnits()
x_unit = mtd[self._sample].getAxis(0).getUnit().unitID()

# Create an empty workspace with enough storage for the new data
zeros = np.zeros(new_array_len * num_symm_spectra)
Expand Down

0 comments on commit 6a3bd52

Please sign in to comment.