Skip to content

Commit

Permalink
Make sure to set units on datetime (#673)
Browse files Browse the repository at this point in the history
Ensure units are set properly for datetime in csv reader
  • Loading branch information
mgrover1 authored May 12, 2023
1 parent 8abab8f commit 364823e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion act/io/csvfiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def read_csv(filename, sep=',', engine='python', column_names=None, skipfooter=0

# Set Coordinates if there's a variable date_time
if 'date_time' in df:
df.date_time = df.date_time.astype('datetime64')
df.date_time = df.date_time.astype('datetime64[ns]')
df.time = df.date_time
df = df.set_index('time')

Expand Down

0 comments on commit 364823e

Please sign in to comment.