Skip to content

Commit

Permalink
merge conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
ESadek-MO committed Dec 11, 2024
2 parents 84ea908 + 7114f0f commit 44afb25
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
9 changes: 3 additions & 6 deletions lib/iris/_data_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
"""Management of common state and behaviour for cube and coordinate data."""

import copy

import iris.exceptions
import iris.warnings
from warnings import warn

import numpy as np
import numpy.ma as ma

from iris._lazy_data import as_concrete_data, as_lazy_data, is_lazy_data
import iris.exceptions
import iris.warnings


class DataManager:
Expand Down Expand Up @@ -47,8 +47,6 @@ def __init__(self, data, shape=None):
msg = f"A cube may not be created without both data and a custom shape."
warn(msg, iris.warnings.IrisUserWarning)



def __copy__(self):
"""Forbid :class:`~iris._data_manager.DataManager` instance shallow-copy support."""
name = type(self).__name__
Expand Down Expand Up @@ -290,7 +288,6 @@ def ndim(self):
def shape(self):
"""The shape of the data being managed."""
if self.data is None:
# if self._lazy_array is None and np.all(self.data == None):
result = self._shape
else:
result = self.core_data().shape
Expand Down
2 changes: 1 addition & 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, # should this now be none? test this
data: np.typing.ArrayLike, # should this now be none? test this
shape: tuple | None = None,
standard_name: str | None = None,
long_name: str | None = None,
Expand Down

0 comments on commit 44afb25

Please sign in to comment.