Skip to content

Commit

Permalink
Add mapmaking script to project scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
Wuhyun authored and sbiquard committed Feb 5, 2025
1 parent 29762db commit 0fedfac
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ toast-mapmaking = ['astropy', 'jax>=0.4.38', 'optax', 'toast>=3.0.0a27']
homepage = 'https://scipol.in2p3.fr'
repository = 'https://github.com/CMBSciPol/furax'

[project.scripts]
furax-mapmaker = 'furax.interfaces.toast.mapmaker.sotodlib_mapmaker:main_cli'

[tool.coverage.report]
exclude_lines = [
'pragma: no cover',
Expand Down
6 changes: 5 additions & 1 deletion src/furax/interfaces/toast/mapmaker/sotodlib_mapmaker.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,5 +158,9 @@ def get_parser(parser: argparse.ArgumentParser | None = None) -> argparse.Argume
return parser


if __name__ == '__main__':
def main_cli() -> None:
main_launcher(main, get_parser)


if __name__ == '__main__':
main_cli()

0 comments on commit 0fedfac

Please sign in to comment.