Skip to content
This repository was archived by the owner on Jun 2, 2025. It is now read-only.

Commit 4f94490

Browse files
committed
remove catropy from requiremnts
1 parent 6d9b9bf commit 4f94490

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

ocf_datapipes/transform/xarray/reproject_topographic_data.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,18 @@
11
from pathlib import Path
22
from typing import Union
33

4-
import cartopy.crs as ccrs
54
import numpy as np
65
import pyproj
76
import pyresample
87
import xarray as xr
98
from torchdata.datapipes import functional_datapipe
109
from torchdata.datapipes.iter import IterDataPipe
1110

11+
try:
12+
import cartopy.crs as ccrs
13+
except:
14+
pass
15+
1216

1317
@functional_datapipe("reproject_topography")
1418
class ReprojectTopographyIterDataPipe(IterDataPipe):

requirements.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,5 @@ jpeg_xl_float_with_nans
1818
h5netcdf
1919
tqdm
2020
bottleneck
21-
cartopy
2221
pyproj
2322
pyresample

0 commit comments

Comments
 (0)