Skip to content

Commit

Permalink
annotation fix
Browse files Browse the repository at this point in the history
  • Loading branch information
karllark committed Feb 21, 2025
1 parent 8928101 commit 053b243
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions measure_extinction/stardata.py
Original file line number Diff line number Diff line change
Expand Up @@ -1733,6 +1733,10 @@ def plot(
& (waves <= annotate_wave_range[1])
)
ann_val = np.nanmedian(yplotvals[ann_indxs])
if yoffset_type == "multiply":
ann_val *= 10**annotate_yoffset

Check warning on line 1737 in measure_extinction/stardata.py

View check run for this annotation

Codecov / codecov/patch

measure_extinction/stardata.py#L1737

Added line #L1737 was not covered by tests
else:
ann_val += yoffset
ann_val += (annotate_yoffset,)
ann_xval = 0.5 * np.sum(annotate_wave_range.value)
if wavenum:
Expand Down

0 comments on commit 053b243

Please sign in to comment.