Skip to content

Commit

Permalink
example typos
Browse files Browse the repository at this point in the history
  • Loading branch information
dahlend committed Jun 21, 2024
1 parent 6bd8942 commit 5a45b26
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 6 deletions.
4 changes: 3 additions & 1 deletion src/examples/plot_observability.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,9 @@

# if we cannot compute mag, set the mag to NAN and keep moving
if obj.h_mag is not None:
mag = neospy.flux.hg_apparent_mag(sun2obj, sun2obs, g_phase, obj.h_mag)
mag = neospy.flux.hg_apparent_mag(
sun2obj=sun2obj, sun2obs=sun2obs, h_mag=obj.h_mag, g_param=g_phase
)
mag = np.clip(mag, -1000, 1000)
else:
mag = np.nan
Expand Down
8 changes: 4 additions & 4 deletions src/examples/plot_phases.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@
obj2earth = sun2earth - sun2obj
mags.append(
neospy.flux.hg_apparent_mag(
sun2obj,
sun2earth,
neo_subset.h_mag.iloc[i],
neo_subset.g_phase.iloc[i],
sun2obj=sun2obj,
sun2obs=sun2earth,
h_mag=neo_subset.h_mag.iloc[i],
g_param=neo_subset.g_phase.iloc[i],
)
)

Expand Down
7 changes: 6 additions & 1 deletion src/examples/plot_uncertainty.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,12 @@
for jd in jds:
states = neospy.propagate_n_body(states, jd)
earth = neospy.SpiceKernels.state("earth", jd)
m = [neospy.flux.hg_apparent_mag(x.pos, earth.pos, g, obj.h_mag) for x in states]
m = [
neospy.flux.hg_apparent_mag(
sun2obj=x.pos, sun2obs=earth.pos, h_mag=obj.h_mag, g_param=g
)
for x in states
]
mags.append(m)

# Find the step where the median magnitude was the brightest
Expand Down

0 comments on commit 5a45b26

Please sign in to comment.