Adding MissingConstraintWarning warning by bmorris3 · Pull Request #528 · astropy/astroplan · GitHub
Skip to content

Adding MissingConstraintWarning warning#528

Merged
bmorris3 merged 1 commit into
astropy:mainfrom
bmorris3:months-observable-warning
Oct 12, 2022
Merged

Adding MissingConstraintWarning warning#528
bmorris3 merged 1 commit into
astropy:mainfrom
bmorris3:months-observable-warning

Conversation

@bmorris3

@bmorris3 bmorris3 commented Oct 11, 2022

Copy link
Copy Markdown
Contributor

This PR was originally meant to address #514 from @knservis, but it widened into a few overdue improvements.

New features:
– A MissingConstraintWarning is raised when the user runs months_observable(constraints, ...) without an AltitudeConstraint or an AirmassConstraint among the constraints.

Improvements
– better handling of nan times within astroplan
– old manifest contents for astropy helpers are removed
– a hidden method _process_nans_in_jds handles the masking of "bad" times uniformly across methods within the Observer class

Closes #514

@bmorris3 bmorris3 merged commit c0ddf67 into astropy:main Oct 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Months observable gives unexpected result

1 participant