From 2a59119a6635454eba33c268d8cf8caa6eecd204 Mon Sep 17 00:00:00 2001 From: speckhard <dts@stanford.edu> Date: Fri, 8 Feb 2019 16:19:50 +0100 Subject: [PATCH] Removed useless variable in addArrayvalues. --- common/python/nomadcore/local_backend.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/python/nomadcore/local_backend.py b/common/python/nomadcore/local_backend.py index 947fde7..6d22074 100644 --- a/common/python/nomadcore/local_backend.py +++ b/common/python/nomadcore/local_backend.py @@ -182,7 +182,7 @@ class LocalBackend(object): if actual_numpy_type not in array_types: raise TypeError("The given array for metainfo '{}' has incorrect type of values in it. The values given are '{}', whereas the datatype given in metainfo is '{}'".format(metaName, actual_numpy_type, dtype_str)) - dataManager.superSectionManager.addArrayValues(dataManager.metaInfo, values, gIndex) + dataManager.superSectionManager.addArrayValues(dataManager.metaInfo, values, gIndex=gIndex) def array_type_for_metainfo_type(self, dtypeStr): """Returns a list of numpy types correspoding to the dtypeStr of a @@ -629,7 +629,7 @@ class SectionManager(object): except KeyError: raise Exception("Cannot set array values for metadata %s to section %d (%d) of %s, as it is not open" % (valueMetaInfo.name, gI, gIndex, self.metaInfo.name)) - def addArrayValues(self, valueMetaInfo, value, offset=None, gIndex=-1): + def addArrayValues(self, valueMetaInfo, value, gIndex=-1): if gIndex == -1: gI = self.lastSectionGIndex else: -- GitLab