From dc663060475d17fadc92b73aae3b4f41bb5c68f6 Mon Sep 17 00:00:00 2001 From: Jan Gieseler Date: Thu, 7 Mar 2024 12:52:45 +0200 Subject: [PATCH] increase version number (+code cleaning) --- solo_epd_loader/__init__.py | 5 ++--- solo_epd_loader/version.py | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/solo_epd_loader/__init__.py b/solo_epd_loader/__init__.py index 0afd107..8bff68e 100644 --- a/solo_epd_loader/__init__.py +++ b/solo_epd_loader/__init__.py @@ -662,7 +662,7 @@ def _read_epd_cdf(sensor, viewing, level, startdate, enddate=None, path=None, au filelist = _check_duplicates(filelist, verbose=True) if len(filelist) == 0: - custom_warning('No corresponding data files found! Try different settings, path or autodownload.') + custom_warning('No corresponding data files found! Try different settings, path or autodownload.') df_epd_p = [] df_epd_e = [] energies_dict = [] @@ -1645,7 +1645,6 @@ def resample_df(df, resample, pos_timestamp="center", origin="start"): return df - def shift_index_start2center(df, delta_epoch_name=None): """ Move index time of DataFrame df from start of time interval to its center @@ -1685,7 +1684,7 @@ def shift_index_start2center(df, delta_epoch_name=None): if not np.isnan(cadence): # Shift index by half the cadence df.loc[df[de][de]==cadence, 'Time'] = df.loc[df[de][de]==cadence, 'Time'] + pd.Timedelta(f'{cadence/2}s') - + # Overwrite index df.set_index('Time', drop=True, inplace=True) diff --git a/solo_epd_loader/version.py b/solo_epd_loader/version.py index a46d20c..b17cd1b 100644 --- a/solo_epd_loader/version.py +++ b/solo_epd_loader/version.py @@ -5,4 +5,4 @@ from setuptools_scm import get_version __version__ = get_version(root='..', relative_to=__file__) except Exception: - __version__ = '0.3.6' + __version__ = '0.3.7'