Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add conda dependencies #3

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
# goodman_photometry

[![Upload to PYPI](https://github.com/soar-telescope/goodman_photometry/actions/workflows/python-publish.yml/badge.svg)](https://github.com/soar-telescope/goodman_photometry/actions/workflows/python-publish.yml)
[![pypi](https://img.shields.io/pypi/v/goodman_photometry.svg?style=flat)](https://pypi.org/project/goodman-photometry/)

Routines to perform automatic astrometry and photometry of goodman imaging observations

The codes were initially based on STDPipe (https://github.com/karpov-sv/stdpipe) and adapted for Goodman HST.
Expand Down
3 changes: 3 additions & 0 deletions environment.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
name: goodman_photometry
channels:
- defaults
- conda-forge
dependencies:
- astromatic-source-extractor
- astromatic-scamp
- pip
- pip:
- asciitree==0.3.3
Expand Down
8 changes: 8 additions & 0 deletions goodman_photometry/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,10 @@ def get_astrometry_args(arguments=None):
print(__version__)
sys.exit(0)

if not args.filename:
parser.print_help()
parser.exit(0, "\nPlease specify a filename to process.\n")

return args


Expand Down Expand Up @@ -164,4 +168,8 @@ def get_photometry_args(arguments=None):
print(__version__)
sys.exit(0)

if not args.filename:
parser.print_help()
parser.exit(0, "\nPlease provide a filename to process.\n")

return args
9 changes: 5 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ authors = [
{name = "Felipe Navarete", email = "[email protected] "},
]
maintainers = [
{name = "Felipe Navarete", email = "[email protected] "}
{name = "Felipe Navarete", email = "[email protected] "},
{name = "Simón Torres", email = "[email protected] "}
]

classifiers = [
Expand Down Expand Up @@ -63,9 +64,9 @@ dependencies = [
]

[project.urls]
"Homepage" = "https://github.com/navarete/goodman_photometry"
"Bug Reports" = "https://github.com/navarete/goodman_photometry/issues"
"Source" = "https://github.com/navarete/goodman_photometry"
"Homepage" = "https://github.com/soar-telescope/goodman_photometry"
"Bug Reports" = "https://github.com/soar-telescope/goodman_photometry/issues"
"Source" = "https://github.com/soar-telescope/goodman_photometry"

[project.scripts]
redastrometry = "goodman_photometry.astrometry:goodman_astrometry"
Expand Down