Skip to content

Commit

Permalink
Fix autoscaling errors
Browse files Browse the repository at this point in the history
  • Loading branch information
dcf21 committed Aug 27, 2024
1 parent 134c973 commit 7093c75
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/astroGraphics/ephemeris.c
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,14 @@ maximum_star_label_count=%d # %s\n\
void ephemerides_autoscale_plot(chart_config *s, const int total_ephemeris_points) {
int i, j, k;

// If we have no ephemerides, do not attempt autoscaling
if (s->ephemeris_final_count < 1) {
if (s->ephemeris_autoscale) {
stch_error("Plot autoscaling failure: there are no ephemerides to autoscale to.");
}
return;
}

// Track the sky coverage of each ephemeris in RA and Dec
// Create a coarse grid of RA and Declination where we set Boolean flags for whether the solar system object passes
// through each cell.
Expand Down

0 comments on commit 7093c75

Please sign in to comment.