Skip to content

Predict onsky rates#315

Merged
awilson110 merged 10 commits intomainfrom
predict-onsky-rates
Mar 13, 2026
Merged

Predict onsky rates#315
awilson110 merged 10 commits intomainfrom
predict-onsky-rates

Conversation

@awilson110
Copy link
Copy Markdown
Collaborator

Fixes #239

Gives users the option to output on-sky rates and geometry, such as range, heliocentric distance, phase angle, etc. for each prediction. Also a couple of minor changes, like a small fix to _convert_to_sg, and now checks if there are covariance columns before trying to find covariances.

Review Checklist for Source Code Changes

  • Does pip install still work?
  • Have you written a unit test for any new functions?
  • Do all the units tests run successfully?
  • Does Layup run successfully on a test set of input files/databases?
  • Have you used black on the files you have updated to confirm python programming style guide enforcement?

using sorcha functions, gets on sky rates for predict results
Had to be more explicit about when to print - or + for dec. Old method would always print + if result was close to zero (including negative). Also updating work on paralellising _get_on_sky_data
attempting to vectorise the code
Now outputs the magnitude of Obj_Sun_LTC_km
@awilson110
Copy link
Copy Markdown
Collaborator Author

The unit test failure is the same as the one Meg was getting a couple of days ago, not sure what the fix is

@matthewholman
Copy link
Copy Markdown
Collaborator

This seems ready.

@mschwamb mschwamb requested a review from matthewholman March 12, 2026 20:56
@matthewholman
Copy link
Copy Markdown
Collaborator

This looks good to me.

Copy link
Copy Markdown
Collaborator

@matthewholman matthewholman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good to go.

@awilson110 awilson110 merged commit e9a473e into main Mar 13, 2026
6 of 7 checks passed
@awilson110 awilson110 deleted the predict-onsky-rates branch March 13, 2026 10:06
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.

layup predict should give more observer useful columns like phase angle, ra & dec rates, range

2 participants