Skip to content

Commit e9a8a40

Browse files
fixed mindeps testcase (#820)
1 parent 37d0de8 commit e9a8a40

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dfm_tools/observations.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1020,7 +1020,7 @@ def ssh_netcdf_overview(dir_netcdf, perplot=30, time_min=None, time_max=None, ye
10201020
fig_file_list.append(fname_clean)
10211021

10221022
# stats
1023-
ds_ndays = round(float((ds.time.max() - ds.time.min()).dt.total_seconds()/3600/24), 2)
1023+
ds_ndays = round(int(ds.time.max() - ds.time.min())/1e9/3600/24, 2)
10241024
nvalues = len(ds.waterlevel)
10251025
nnan = int(ds.waterlevel.isnull().sum())
10261026
time_diff_min = ds.time.to_pandas().diff().dt.total_seconds()/60

0 commit comments

Comments
 (0)