serpentine-h2020 / SEPpy

A compendium of Python data loaders and analysis tools for in-situ measurements of Solar Energetic Particles (SEP)
BSD 3-Clause "New" or "Revised" License
7 stars 6 forks source link

PSP loader raises UnboundLocalError if channel input is not a list #16

Closed Christian-Palmroos closed 1 year ago

Christian-Palmroos commented 1 year ago

The error arises in the function calc_av_en_flux_PSP_EPIHI in line 420, due to the variable en_str that is defined in line 392, inside an if clause. If the statement in line 392 is evaluated as False, then en_str is never defined and this raises the error later after the else bloack that starts in line 418.

jgieseler commented 1 year ago

Released in version 0.1.4 (PyPI)