diff --git a/cyprecice/cyprecice.pyx b/cyprecice/cyprecice.pyx index 8c9c4ae1..316ce738 100644 --- a/cyprecice/cyprecice.pyx +++ b/cyprecice/cyprecice.pyx @@ -956,7 +956,7 @@ cdef class Interface: """ dimensions = self.get_dimensions() cdef np.ndarray[double, ndim=1] _value = np.empty(dimensions, dtype=np.double) - if relative_read_time == None: + if relative_read_time is None: self.thisptr.readVectorData (data_id, vertex_id, _value.data) else: self.thisptr.readVectorData (data_id, vertex_id, relative_read_time, _value.data) @@ -1004,7 +1004,7 @@ cdef class Interface: cdef np.ndarray[int, ndim=1] _vertex_ids = np.ascontiguousarray(vertex_ids, dtype=np.int32) size = _vertex_ids.size cdef np.ndarray[double, ndim=1] _values = np.empty(size, dtype=np.double) - if relative_read_time == None: + if relative_read_time is None: self.thisptr.readBlockScalarData (data_id, size, _vertex_ids.data, _values.data) else: self.thisptr.readBlockScalarData (data_id, size, _vertex_ids.data, relative_read_time, _values.data) @@ -1042,7 +1042,7 @@ cdef class Interface: >>> value = interface.read_scalar_data(data_id, vertex_id) """ cdef double _value - if relative_read_time == None: + if relative_read_time is None: self.thisptr.readScalarData (data_id, vertex_id, _value) else: self.thisptr.readScalarData (data_id, vertex_id, relative_read_time, _value)