diff --git a/cosipy/data_io/UnBinnedData.py b/cosipy/data_io/UnBinnedData.py index e3a6190e..f51f6293 100644 --- a/cosipy/data_io/UnBinnedData.py +++ b/cosipy/data_io/UnBinnedData.py @@ -576,15 +576,13 @@ def write_unbinned_output(self, output_name): Name of output file. Only include prefix (not file type). """ + # Units for new DC4 structure of the data units = (u.keV, u.s, u.rad, u.rad, u.rad, u.rad, u.rad, u.rad, u.cm, u.deg, u.deg, u.dimensionless_unscaled) - # Old UnBinned data structure did not have the last field - # (CO_seq); this special case should be removed for DC4. - units = units[:len(self.cosi_dataset.keys())] if self.unbinned_output == 'fits': # For fits output diff --git a/cosipy/pipeline/task/task.py b/cosipy/pipeline/task/task.py index 0c728f6c..a75a5c3c 100644 --- a/cosipy/pipeline/task/task.py +++ b/cosipy/pipeline/task/task.py @@ -117,7 +117,7 @@ def cosi_bindata(argv=None): #Apply optional time selection: if config.get("tmin") is not None and config.get("tmax") is not None: # - print("Applying time selection %f-%f to the unbinned data" % (tmin,tmax)) + logger.info("Applying time selection %f-%f to the unbinned data" % (tmin,tmax)) # tseldata_name="tsel_unbinned_data" if not args.suffix else str("tsel_unbinned_data_"+args.suffix) tseldata_path=odir/tseldata_name @@ -140,8 +140,8 @@ def cosi_bindata(argv=None): raise RuntimeError(f"{bdata_path} already exists. If you mean to replace it then use --overwrite.") get_binned_data(yaml_path,data_path,bdata_path, psichi_coo) # - print(str(" Binning configuration file " + str(yaml_path) + " is ready")) - print(str(" Binned data file "+str(bdata_path)+" is ready for analysis")) + logger.info(str(" Binning configuration file " + str(yaml_path) + " is ready")) + logger.info(str(" Binned data file "+str(bdata_path)+" is ready for analysis")) if __name__ == "__main__":