Skip to content

Commit

Permalink
further fix array flattening to be comp. with cdflib 1.3.3
Browse files Browse the repository at this point in the history
  • Loading branch information
jgieseler committed Jan 17, 2025
1 parent f1d4f84 commit d7d17bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions seppy/loader/psp.py
Original file line number Diff line number Diff line change
Expand Up @@ -410,8 +410,8 @@ def calc_av_en_flux_PSP_EPIHI(df, energies, en_channel, species, instrument, vie
flux_key = 'H_Flux'
en_str = energies[f'{species_str}_ENERGY_LABL']
if type(en_channel) == list:
energy_low = en_str[en_channel[0]][0].split('-')[0]
energy_up = en_str[en_channel[-1]][0].split('-')[-1]
energy_low = en_str[en_channel[0]].flat[0].split('-')[0]
energy_up = en_str[en_channel[-1]].flat[0].split('-')[-1]
en_channel_string = energy_low + '-' + energy_up

DE = energies[f'{species_str}_ENERGY_DELTAPLUS']+energies[f'{species_str}_ENERGY_DELTAMINUS']
Expand Down

0 comments on commit d7d17bf

Please sign in to comment.