Skip to content

Commit

Permalink
Merge pull request #155 from pysat/index_bugfix
Browse files Browse the repository at this point in the history
BUG: fixed index evaluation
  • Loading branch information
aburrell authored Nov 13, 2024
2 parents 7c81e46 + f54b25b commit 222e986
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pysatSpaceWeather/instruments/methods/f107.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,10 +245,11 @@ def combine_f107(standard_inst, forecast_inst, start=None, stop=None):
good_vals = np.array([
not is_fill_val(val, fill_val) for val
in forecast_inst['f107'][good_times]])
new_times = list(forecast_inst.index[good_times][good_vals])

# Save desired data and cycle time
if len(new_times) > 0:
if len(good_vals) > 0:
new_times = list(forecast_inst.index[good_times][
good_vals])
f107_times.extend(new_times)
new_vals = list(
forecast_inst['f107'][good_times][good_vals])
Expand Down

0 comments on commit 222e986

Please sign in to comment.