Skip to content

Commit ed0683d

Browse files
committed
remove loadd and loads from __init__
1 parent 61e297d commit ed0683d

File tree

1 file changed

+0
-33
lines changed

1 file changed

+0
-33
lines changed

cf/data/data.py

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -208,8 +208,6 @@ def __init__(
208208
fill_value=None,
209209
hardmask=_DEFAULT_HARDMASK,
210210
chunks=_DEFAULT_CHUNKS,
211-
loadd=None,
212-
loads=None,
213211
dt=False,
214212
source=None,
215213
copy=True,
@@ -318,16 +316,6 @@ def __init__(
318316
given by the *array* parameter are re-interpreted as
319317
date-time objects. By default they are not.
320318
321-
loadd: `dict`, optional
322-
Initialise the data from a dictionary serialization of a
323-
`cf.Data` object. All other arguments are ignored. See the
324-
`dumpd` and `loadd` methods.
325-
326-
loads: `str`, optional
327-
Initialise the data array from a string serialization of a
328-
`Data` object. All other arguments are ignored. See the
329-
`dumps` and `loads` methods.
330-
331319
copy: `bool`, optional
332320
If False then do not deep copy input parameters prior to
333321
initialization. By default arguments are deep copied.
@@ -395,19 +383,6 @@ def __init__(
395383
if init_options is None:
396384
init_options = {}
397385

398-
if source is not None:
399-
if loadd is not None:
400-
raise ValueError(
401-
"Can't set the 'source' and 'loadd' parameters "
402-
"at the same time"
403-
)
404-
405-
if loads is not None:
406-
raise ValueError(
407-
"Can't set the 'source' and 'loads' parameters "
408-
"at the same time"
409-
)
410-
411386
if source is not None:
412387
try:
413388
array = source._get_Array(None)
@@ -442,14 +417,6 @@ def __init__(
442417

443418
super().__init__(array=array, fill_value=fill_value, _use_array=False)
444419

445-
if loadd is not None:
446-
self.loadd(loadd)
447-
return
448-
449-
if loads is not None:
450-
self.loads(loads)
451-
return
452-
453420
# Set the units
454421
units = Units(units, calendar=calendar)
455422
self._Units = units

0 commit comments

Comments
 (0)