Skip to content

Commit

Permalink
cube data is optional
Browse files Browse the repository at this point in the history
  • Loading branch information
ESadek-MO committed Dec 17, 2024
1 parent 79d7d67 commit 9b52067
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/iris/cube.py
Original file line number Diff line number Diff line change
Expand Up @@ -1190,7 +1190,7 @@ def _walk_nodes(node):

def __init__(
self,
data: np.typing.ArrayLike,
data: np.typing.ArrayLike | None = None,
standard_name: str | None = None,
long_name: str | None = None,
var_name: str | None = None,
Expand Down Expand Up @@ -1251,6 +1251,9 @@ def __init__(
A list of CellMeasures with dimension mappings.
ancillary_variables_and_dims :
A list of AncillaryVariables with dimension mappings.
shape :
An alternative to providing data, this defines the shape of the
cube, but initialises the cube as dataless.
Examples
--------
Expand Down

0 comments on commit 9b52067

Please sign in to comment.