diff --git a/striptease/hdf5files.py b/striptease/hdf5files.py index 4bacf99..6ef25be 100644 --- a/striptease/hdf5files.py +++ b/striptease/hdf5files.py @@ -534,7 +534,7 @@ def load_hk(self, group, subgroup, par, verbose=False): hk_data = datahk["value"] return hk_time, hk_data - def load_sci(self, polarimeter, data_type, detector=[], check_overflow=True): + def load_sci(self, polarimeter, data_type, detector=[]): """Loads scientific data from one detector of a given polarimeter Args: @@ -552,10 +552,6 @@ def load_sci(self, polarimeter, data_type, detector=[], check_overflow=True): no value is provided for this parameter, all the four detectors will be returned. - check_overflow (bool): If ``True``, the sign of ``PWR`` data - will be checked that they do not overflow the - ``numpy.int32`` type. - Returns: A tuple containing two NumPy arrays: the stream of times @@ -615,14 +611,6 @@ def load_sci(self, polarimeter, data_type, detector=[], check_overflow=True): column_selector = tuple([f"{data_type}{x}" for x in detector]) converted_data = scidata[column_selector] - if data_type == "PWR" and check_overflow: - if converted_data.dtype.names: - for cur_field in converted_data.dtype.names: - assert np.all( - converted_data[cur_field] >= 0 - ), f"Field {cur_field} has out-of-bounds values" - else: - assert np.all(converted_data >= 0), "Data have out-of-bounds values" return scitime, converted_data