From 62f3d9dc31aa1d67e38e88e4d14d05dcb83f3c2a Mon Sep 17 00:00:00 2001
From: Andrei Savici <saviciat@ornl.gov>
Date: Fri, 25 Jan 2019 12:59:38 -0500
Subject: [PATCH] Undo saving vector of ints.

Convert vector to doubles instead
---
 Framework/Kernel/src/PropertyWithValue.cpp                      | 1 -
 .../plugins/algorithms/CropWorkspaceForMDNorm.py                | 2 +-
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/Framework/Kernel/src/PropertyWithValue.cpp b/Framework/Kernel/src/PropertyWithValue.cpp
index ac21f2e4611..d3859534476 100644
--- a/Framework/Kernel/src/PropertyWithValue.cpp
+++ b/Framework/Kernel/src/PropertyWithValue.cpp
@@ -34,7 +34,6 @@ PROPERTYWITHVALUE_SAVEPROPERTY(uint64_t)
 PROPERTYWITHVALUE_SAVEPROPERTY(std::string)
 PROPERTYWITHVALUE_SAVEPROPERTY(std::vector<double>)
 PROPERTYWITHVALUE_SAVEPROPERTY(std::vector<int32_t>)
-PROPERTYWITHVALUE_SAVEPROPERTY(std::vector<int64_t>)
 
 /// @cond
 template class MANTID_KERNEL_DLL PropertyWithValue<uint16_t>;
diff --git a/Framework/PythonInterface/plugins/algorithms/CropWorkspaceForMDNorm.py b/Framework/PythonInterface/plugins/algorithms/CropWorkspaceForMDNorm.py
index 8feb07972e8..c2345beb41c 100644
--- a/Framework/PythonInterface/plugins/algorithms/CropWorkspaceForMDNorm.py
+++ b/Framework/PythonInterface/plugins/algorithms/CropWorkspaceForMDNorm.py
@@ -110,7 +110,7 @@ class CropWorkspaceForMDNorm(PythonAlgorithm):
                 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")
         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)
 
 # Register algorithm with Mantid.
-- 
GitLab