Skip to content

Commit 9b19a92

Browse files
committed
Remove old datetime conversion
I missed committing 3 line deletions which remove the old pandas.apply based datetime conversion approach.
1 parent 1b52a17 commit 9b19a92

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

HSP2tools/readWDM.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,9 +129,6 @@ def readWDM(wdmfile, hdffile, compress_output=True):
129129
records = np.asarray(records)
130130
offsets = np.asarray(offsets)
131131
dates, values = _process_groups(iarray, farray, records, offsets, tgroup)
132-
series = pd.Series(values, index=dates)
133-
index = series.index.to_series()
134-
series.index = index.apply(lambda x: datetime.datetime(*bits_to_date(x)))
135132
dates = np.array(dates)
136133
dates_converted = date_convert(dates, date_epoch, dt_year, dt_month, dt_day, dt_hour, dt_minute, dt_second)
137134
series = pd.Series(values, index=dates_converted)

0 commit comments

Comments
 (0)