Skip to content

Commit

Permalink
Add TODO note about the fillna() operation prior to spline fitting
Browse files Browse the repository at this point in the history
  • Loading branch information
liamtoney committed Jul 20, 2023
1 parent 5498e70 commit bdeca17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion infresnel/infresnel.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def calculate_paths(
print('Fitting spline to DEM...')
x = dem_utm.x
y = dem_utm.y
z = dem_utm.fillna(0) # Can't have NaNs in z
z = dem_utm.fillna(0) # Can't have NaNs in z (TODO: Should this be << 0 instead?)
if not pd.Series(x).is_monotonic_increasing:
x = x[::-1]
z = np.fliplr(z)
Expand Down

0 comments on commit bdeca17

Please sign in to comment.