jgieseler / solo-epd-loader

Data loader (and downloader) for Solar Orbiter/EPD energetic charged particle sensors EPT, HET, and STEP. Supports level 2 and low latency data provided by ESA's Solar Orbiter Archive.
BSD 3-Clause "New" or "Revised" License
15 stars 2 forks source link

Take care of deprecation warning in pd.concat usage #31

Open jgieseler opened 6 months ago

jgieseler commented 6 months ago

Since Pandas 2.1.0, there is a deprecation warning in (some) usages of pd.concat:

Deprecated the behavior of concat() with both len(keys) != len(objs), in a future version this will raise instead of truncating to the shorter of the two sequences (GH 43485)

This is raised e.g. for this call https://github.com/jgieseler/solo-epd-loader/blob/7241eea0670618d09c8a5ab6f310cdabf69013e8/solo_epd_loader/__init__.py#L826-L828

Minimal working example:

from solo_epd_loader import epd_load
df_protons_het, df_electrons_het, energies_het = epd_load(sensor='het', level='ll', startdate=20220905, viewing='sun', autodownload=True)