Skip to content

Commit

Permalink
Removed redundant lines on sunrise_sunset (#206)
Browse files Browse the repository at this point in the history
  • Loading branch information
MOchiara committed Jul 11, 2024
1 parent e9ce29b commit 9e4c287
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions glidertools/optics.py
Original file line number Diff line number Diff line change
Expand Up @@ -448,10 +448,8 @@ def sunset_sunrise(time, lat, lon):
# set days as index
df = df.set_index(df.time.values.astype("datetime64[D]"))

# groupby days and find sunrise for unique days
# groupby days and find sunrise/sunset for unique days
grp_avg = df.groupby(df.index).mean(numeric_only=False)
date = grp_avg.index.to_pydatetime()
date = grp_avg.index

time_utc = ts.utc(date.year, date.month, date.day, date.hour)
Expand Down

0 comments on commit 9e4c287

Please sign in to comment.