Skip to content

Commit

Permalink
Merge branch 'kp_verify_bug' of https://github.com/pysat/pysatSpaceWe…
Browse files Browse the repository at this point in the history
…ather into kp_verify_bug
  • Loading branch information
aburrell committed Aug 13, 2024
2 parents 081d8fc + 715f315 commit af6f46c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions pysatSpaceWeather/instruments/methods/f107.py
Original file line number Diff line number Diff line change
Expand Up @@ -375,10 +375,7 @@ def calc_f107a(f107_inst, f107_name='f107', f107a_name='f107a', min_pnts=41):
freq = pysat.utils.time.calc_freq(f107_inst.index)
if freq != "86400s":
# Resample to the desired frequency
if pds.to_timedelta(freq) < pds.to_timedelta("86400s"):
f107_fill = f107_fill.resample(freq).ffill()
else:
f107_fill = f107_fill.resample(freq).asfreq()
f107_fill = f107_fill.resample(freq).ffill()

# Save the output in a list
f107a = list(f107_fill[f107a_name])
Expand Down

0 comments on commit af6f46c

Please sign in to comment.