Skip to content

Commit

Permalink
Merge pull request #62 from ojha-aditya/dev-branch
Browse files Browse the repository at this point in the history
Incorporated the functionality of having different data column name in get_timeseries function from preparation.py
  • Loading branch information
laserlab authored Nov 8, 2024
2 parents 3a4b8c6 + 5ab43dc commit d69824e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion preparation.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def calc_freq(data, tim):
diftim = diftim/(60*60*24*30.4375)
return np.fft.fftfreq(n, d = diftim)

def get_timeseries(path, datecolumn = 'date'):
def get_timeseries(path, datecolumn = 'date', datacolumn = 'CO2 (ppm)'):
'''
This function reads json files from the data collection task
and returns a pandas time series with datetime as index and
Expand Down

0 comments on commit d69824e

Please sign in to comment.