Skip to content

Commit c9eb645

Browse files
committed
Fixes error thrown when using multiple files for fields with no time dimension
1 parent dd9554e commit c9eb645

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

parcels/field.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -686,7 +686,7 @@ def from_netcdf(
686686
kwargs["data_full_zdim"] = data_full_zdim
687687

688688
if len(data_filenames) > 1 and "time" not in dimensions and timestamps is None:
689-
raise RuntimeError("Multiple files given but no time dimension specified")
689+
warnings.warn("Multiple files given but no time dimension specified", FieldSetWarning, stacklevel=2)
690690

691691
if grid is None:
692692
# Concatenate time variable to determine overall dimension

0 commit comments

Comments
 (0)