Skip to content

Commit

Permalink
Update wetlabs_parser.py (#274)
Browse files Browse the repository at this point in the history
  • Loading branch information
shaunwbell authored Oct 10, 2023
1 parent 9ca69dc commit ccdca3f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/EcoFOCIpy/io/wetlabs_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
"""
import sys

import datetime
import pandas as pd


class wetlabs(object):
r""" Wetlabs Unified parser
Expand Down Expand Up @@ -117,7 +117,7 @@ def lineartimecorr(x,deltaT,T0) :
return date

T0 = self.rawdata_df.index[0]
deltaT = offset / (self.rawdata_df.index[-1] - T0)
deltaT = datetime.timedelta(seconds=offset) / (self.rawdata_df.index[-1] - T0)

self.rawdata_df.index = self.rawdata_df.reset_index().apply(lambda x: lineartimecorr(x.date_time,deltaT,T0), axis=1)

Expand Down

0 comments on commit ccdca3f

Please sign in to comment.