Skip to content
Snippets Groups Projects
Commit 62f3d9dc authored by Savici, Andrei T.'s avatar Savici, Andrei T.
Browse files

Undo saving vector of ints.

Convert vector to doubles instead
parent 737313c2
No related branches found
No related tags found
No related merge requests found
...@@ -34,7 +34,6 @@ PROPERTYWITHVALUE_SAVEPROPERTY(uint64_t) ...@@ -34,7 +34,6 @@ PROPERTYWITHVALUE_SAVEPROPERTY(uint64_t)
PROPERTYWITHVALUE_SAVEPROPERTY(std::string) PROPERTYWITHVALUE_SAVEPROPERTY(std::string)
PROPERTYWITHVALUE_SAVEPROPERTY(std::vector<double>) PROPERTYWITHVALUE_SAVEPROPERTY(std::vector<double>)
PROPERTYWITHVALUE_SAVEPROPERTY(std::vector<int32_t>) PROPERTYWITHVALUE_SAVEPROPERTY(std::vector<int32_t>)
PROPERTYWITHVALUE_SAVEPROPERTY(std::vector<int64_t>)
/// @cond /// @cond
template class MANTID_KERNEL_DLL PropertyWithValue<uint16_t>; template class MANTID_KERNEL_DLL PropertyWithValue<uint16_t>;
......
...@@ -110,7 +110,7 @@ class CropWorkspaceForMDNorm(PythonAlgorithm): ...@@ -110,7 +110,7 @@ class CropWorkspaceForMDNorm(PythonAlgorithm):
raise RuntimeError("Could not compare old and new values for 'MDNorm_high' log. "+ raise RuntimeError("Could not compare old and new values for 'MDNorm_high' log. "+
"Make sure the length of the old data is equal to the number of spectra") "Make sure the length of the old data is equal to the number of spectra")
run_obj.addProperty('MDNorm_high', [xmax]*num_spectra, True) run_obj.addProperty('MDNorm_high', [xmax]*num_spectra, True)
run_obj.addProperty('MDNorm_spectra_index', numpy.arange(num_spectra).tolist(), True) run_obj.addProperty('MDNorm_spectra_index', numpy.arange(num_spectra, dtype=float).tolist(), True)
self.setProperty('OutputWorkspace', out_ws) self.setProperty('OutputWorkspace', out_ws)
# Register algorithm with Mantid. # Register algorithm with Mantid.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment