Skip to content

Commit

Permalink
Ref #190
Browse files Browse the repository at this point in the history
Fix time precision warning (hera).
  • Loading branch information
EdwardSafford-NOAA committed Jul 5, 2024
1 parent d60260f commit d32e2b4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/eva/data/csv_space.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,4 +156,6 @@ def get_datetime_array(self, file_data, date_config):
" \'year\': int, \'month\': int, \'day\': int, and \'hour\': int. " +
f" Date information found was {date_config}")

return np.array([np.datetime64(datetime.strptime(ds, '%Y%m%d%H')) for ds in date_str_list])
return np.array([np.datetime64(datetime.strptime(ds,
'%Y%m%d%H').strftime('%Y-%m-%dT%H:%M:%S.%f000000'),
'ns') for ds in date_str_list])

0 comments on commit d32e2b4

Please sign in to comment.