Skip to content

Commit

Permalink
increase version number (+code cleaning)
Browse files Browse the repository at this point in the history
  • Loading branch information
jgieseler committed Mar 7, 2024
1 parent 7241eea commit dc66306
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions solo_epd_loader/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = []
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion solo_epd_loader/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'

0 comments on commit dc66306

Please sign in to comment.