diff --git a/src/python/OpenFUSIONToolkit/ThinCurr/_core.py b/src/python/OpenFUSIONToolkit/ThinCurr/_core.py index 0248249..4384ce7 100644 --- a/src/python/OpenFUSIONToolkit/ThinCurr/_core.py +++ b/src/python/OpenFUSIONToolkit/ThinCurr/_core.py @@ -230,7 +230,7 @@ def save_scalar(self,field,tag): @param field Pointwise data to save @param tag Name of field in plot files ''' - if field.shape[0] >= self.np: + if field.shape[0] != self.np: raise ValueError('Incorrect shape of "field", should be [np]') field = numpy.ascontiguousarray(field, dtype=numpy.float64) ctag = c_char_p(tag.encode())