cositools / cosipy

The COSI high-level data analysis tools
Apache License 2.0
3 stars 16 forks source link

bug in meta data when writing fits files with UnBinnedData class #101

Closed ckarwin closed 1 month ago

ckarwin commented 7 months ago

When writing the un-binned data to a fits file, the meta data includes the keyword "data_file". There are two problems with this.

  1. If the name of the file is too long, this will cause an error (as found by @eneights). This can happen because the code is using the data file name in the inputs yaml file, which often contains a long path.
  2. This meta data doesn't apply when combining multiple fits files.
israelmcmc commented 1 month ago

@ckarwin Can this be closed?

ckarwin commented 1 month ago

@israelmcmc Not yet. It will be an easy fix. I'll get to it soon.