arrakis.cleanup

DANGER ZONE: Purge directories of un-needed FITS files.

Attributes

TQDM_OUT

Functions

cleanup_parser(→ argparse.ArgumentParser)

cli()

Command-line interface

main(→ None)

Clean up beam images flow

make_cutout_tarball(→ pathlib.Path)

Make a tarball of the cutouts directory

purge_cubelet_beams(→ pathlib.Path)

Clean up beam images

Module Contents

arrakis.cleanup.cleanup_parser(parent_parser: bool = False) argparse.ArgumentParser[source]
arrakis.cleanup.cli()[source]

Command-line interface

arrakis.cleanup.main(datadir: pathlib.Path, overwrite: bool = False) None[source]

Clean up beam images flow

Parameters:
  • datadir (Path) – Directory with sub dir ‘cutouts’

  • overwrite (bool) – Overwrite existing tarball

arrakis.cleanup.make_cutout_tarball(cutdir: pathlib.Path, overwrite: bool = False) pathlib.Path[source]

Make a tarball of the cutouts directory

Parameters:

cutdir (Path) – Directory containing cutouts

Returns:

Path to the tarball

Return type:

Path

arrakis.cleanup.purge_cubelet_beams(filepath: pathlib.Path) pathlib.Path[source]

Clean up beam images

Parameters:
  • workdir (str) – Directory containing images

  • stoke (str) – Stokes parameter

arrakis.cleanup.TQDM_OUT[source]