demerge.reduce package#

Module contents#

reduce(*, data_pack: PathLike[str] | str, reduced_pack: PathLike[str] | str, plot_fitsweep: bool = False, overwrite: bool = False, debug: bool = False, **_: Any) Path[source]#

Reduce KID measurements into a single “reduced” FITS.

Parameters:
  • data_pack (PathLike[str] | str) – Path of data package (e.g. cosmos_YYYYmmddHHMMSS).

  • reduced_pack (PathLike[str] | str) – Path of reduced package (e.g. reduced_YYYYmmddHHMMSS).

  • plot_fitsweep (bool) – If True, the results of FitSweep.py will be plotted.

  • overwrite (bool) – If True, reduced_pack will be overwritten even if it exists.

  • debug (bool) – If True, detailed logs for debugging will be printed.

  • _ (Any)

Returns:

Path of the created reduced FITS (in the reduced package).

Raises:
  • FileNotFoundError – Raised if data_pack does not exist.

  • FileExistsError – Raised if reduced_pack exists and overwrite is False.

Return type:

Path