Skip to content

ENH: Add AltAzTarget and support time-dependent targets#634

Open
michaelbaisch wants to merge 4 commits intoastropy:mainfrom
michaelbaisch:altaz_target
Open

ENH: Add AltAzTarget and support time-dependent targets#634
michaelbaisch wants to merge 4 commits intoastropy:mainfrom
michaelbaisch:altaz_target

Conversation

@michaelbaisch
Copy link
Contributor

  • Add AltAzTarget for targets defined in horizontal coordinates at a fixed EarthLocation, evaluated to time-dependent ICRS SkyCoord when needed; support vacuum (pressure=0) and apparent (pressure>0) interpretations via stored atmospheric parameters.
  • Export AltAzTarget and make get_skycoord(time-aware): accept times, evaluate time-dependent targets via get_skycoord(times), and broadcast coords.
  • Pass time into get_skycoord from Observer._preprocess_inputs to enable time-dependent target evaluation during constraint calculations.
  • Update Constraint.call to delegate gridding and time-dependent evaluation to Observer._preprocess_inputs.
  • In scheduling add target_type/target_info columns in Schedule.to_table.
  • Add tests.

#566 was updated to be compatible with this PR.

- Add AltAzTarget for targets defined in horizontal coordinates at a fixed
  EarthLocation, evaluated to time-dependent ICRS SkyCoord when needed; support
  vacuum (pressure=0) and apparent (pressure>0) interpretations via stored
  atmospheric parameters.
- Export AltAzTarget and make get_skycoord(time-aware): accept `times`, evaluate
  time-dependent targets via get_skycoord(times), and broadcast coords.
- Pass `time` into get_skycoord from Observer._preprocess_inputs to enable
  time-dependent target evaluation during constraint calculations.
- Update Constraint.__call__ to delegate gridding and time-dependent evaluation
  to Observer._preprocess_inputs.
- In scheduling add `target_type`/`target_info` columns in Schedule.to_table.
- Add tests.
@codecov
Copy link

codecov bot commented Feb 12, 2026

Codecov Report

❌ Patch coverage is 83.00654% with 26 lines in your changes missing coverage. Please review.
✅ Project coverage is 74.60%. Comparing base (a4d89a0) to head (1a1eadb).

Files with missing lines Patch % Lines
astroplan/scheduling.py 60.00% 16 Missing ⚠️
astroplan/target.py 91.00% 9 Missing ⚠️
astroplan/observer.py 90.90% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #634      +/-   ##
==========================================
+ Coverage   72.90%   74.60%   +1.69%     
==========================================
  Files          14       14              
  Lines        1849     1953     +104     
==========================================
+ Hits         1348     1457     +109     
+ Misses        501      496       -5     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.

1 participant