Skip to content

Commit e73b275

Browse files
update _FileBuffer signature to avoid kwargs
1 parent c376f0d commit e73b275

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

parcels/fieldfilebuffer.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,17 +25,19 @@ def __init__(
2525
timestamp=None,
2626
interp_method: InterpMethodOption = "linear",
2727
data_full_zdim=None,
28+
cast_data_dtype=np.float32,
29+
gridindexingtype="nemo",
2830
**kwargs,
2931
):
3032
self.filename = filename
3133
self.dimensions = dimensions # Dict with dimension keys for file data
3234
self.indices = indices
3335
self.dataset = None
3436
self.timestamp = timestamp
35-
self.cast_data_dtype = kwargs.pop("cast_data_dtype", np.float32)
37+
self.cast_data_dtype = cast_data_dtype
3638
self.ti = None
3739
self.interp_method = interp_method
38-
self.gridindexingtype = kwargs.pop("gridindexingtype", "nemo")
40+
self.gridindexingtype = gridindexingtype
3941
self.data_full_zdim = data_full_zdim
4042
if ("lon" in self.indices) or ("lat" in self.indices):
4143
self.nolonlatindices = False

0 commit comments

Comments
 (0)