Skip to content

Commit 06845ea

Browse files
committed
adjust format
1 parent 5875258 commit 06845ea

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/access_moppy/utilities.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import numpy as np
99
import pandas as pd
1010
import xarray as xr
11-
from cftime import num2date
11+
from cftime import date2num, num2date
1212

1313
type_mapping = {
1414
"real": np.float32,
@@ -1536,9 +1536,6 @@ def calculate_time_bounds(
15361536
ValueError
15371537
If time coordinate is missing or cannot infer frequency
15381538
"""
1539-
import cftime
1540-
from cftime import date2num, num2date
1541-
15421539
if time_coord not in ds.coords:
15431540
raise ValueError(
15441541
f"Dataset must contain '{time_coord}' coordinate to calculate time bounds"

0 commit comments

Comments
 (0)