Skip to content

Commit

Permalink
Update wetlabs_parser.py
Browse files Browse the repository at this point in the history
  • Loading branch information
shaunwbell committed Oct 10, 2023
1 parent 10f15ed commit 851428d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/EcoFOCIpy/io/wetlabs_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def engr2sci(self,cal_coef={}):
def time_correction(self,offset=None,method=None):
""" apply a time offset in seconds
To apply a temporal correction including drift, use method = None
To apply a temporal correction including drift, use method = 'linear'
This method assumes the clock has been syncronized upon deployment."""
self.rawdata_df.index = self.rawdata_df.index + pd.Timedelta(seconds=offset)

Expand All @@ -122,3 +122,6 @@ def lineartimecorr(x,deltaT,T0) :
self.rawdata_df.index = self.rawdata_df.reset_index().apply(lambda x: lineartimecorr(x.date_time,deltaT,T0), axis=1)

return (self.rawdata_df)

def NaT_removal(self):
self.rawdata_df = self.rawdata_df.dropna()

0 comments on commit 851428d

Please sign in to comment.