Skip to content

Commit 89e18bd

Browse files
Remove parse_wildcards
1 parent 9d3a7e2 commit 89e18bd

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

parcels/fieldset.py

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
import os
2-
from glob import glob
3-
41
import numpy as np
52
import uxarray as ux
63
import xarray as xr
@@ -222,18 +219,6 @@ def _check_complete(self):
222219

223220
self._completed = True
224221

225-
@classmethod
226-
def _parse_wildcards(cls, paths, filenames, var):
227-
if not isinstance(paths, list):
228-
paths = sorted(glob(str(paths)))
229-
if len(paths) == 0:
230-
notfound_paths = filenames[var] if isinstance(filenames, dict) and var in filenames else filenames
231-
raise OSError(f"FieldSet files not found for variable {var}: {notfound_paths}")
232-
for fp in paths:
233-
if not os.path.exists(fp):
234-
raise OSError(f"FieldSet file not found: {fp}")
235-
return paths
236-
237222
@classmethod
238223
def from_data(
239224
cls,

0 commit comments

Comments
 (0)