Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add additional mesh stubs #4005

Merged
merged 1 commit into from
Feb 15, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 35 additions & 5 deletions lib/iris/experimental/ugrid.py
Original file line number Diff line number Diff line change
Expand Up @@ -641,6 +641,7 @@ def equal(self, other, lenient=None):
# - copy is off the table!!
#
# - MeshCoord.guess_points()
# - MeshCoord.to_AuxCoord()
#
# - don't provide public methods to return the coordinate and connectivity
# managers
Expand Down Expand Up @@ -690,14 +691,14 @@ def equal(self, other, lenient=None):
#
# @property
# def all_coords(self):
# # return a namedtuple
# # coords = mesh.all_coords
# # coords.face_x, coords.edge_y
# pass
#
# @property
# def node_coords(self):
# # perhaps return a namedtuple?
# # this would give:
# # return a namedtuple
# # node_coords = mesh.node_coords
# # node_coords.x
# # node_coords.y
Expand All @@ -715,6 +716,7 @@ def equal(self, other, lenient=None):
#
# @property
# def all_connectivities(self):
# # return a namedtuple
# # conns = mesh.all_connectivities
# # conns.edge_node, conns.boundary_node
# pass
Expand Down Expand Up @@ -786,15 +788,15 @@ def equal(self, other, lenient=None):
# pass
#
# def add_coords(self, node_x=None, node_y=None, edge_x=None, edge_y=None, face_x=None, face_y=None):
# # this supports add a new coord to the manager, but also replacing an exiting coord
# # this supports adding a new coord to the manager, but also replacing an existing coord
# self._coord_manager.add(...)
#
# def add_connectivities(self, *args):
# # this supports add a new connectivity to the manager, but also replacing an exiting connectivity
# # this supports adding a new connectivity to the manager, but also replacing an existing connectivity
# self._connectivity_manager.add(*args)
#
# def remove_coords(self, ...):
# # could prove the "name", "metadata", "coord"-instance
# # could provide the "name", "metadata", "coord"-instance
# # this could use mesh.coords() to find the coords
# self._coord_manager.remove(...)
#
Expand Down Expand Up @@ -822,6 +824,12 @@ def equal(self, other, lenient=None):
# def __unicode__(self, ...):
# pass
#
# def __getstate__(self):
# pass
#
# def __setstate__(self, state):
# pass
#
# def xml_element(self):
# pass
#
Expand All @@ -830,11 +838,21 @@ def equal(self, other, lenient=None):
# # after using MeshCoord.guess_points(), the user may wish to add the associated MeshCoord.points into
# # the Mesh as face_coordinates.
#
# def to_AuxCoord(self, location, axis):
# # factory method
# # return the lazy AuxCoord(...) for the given location and axis
#
# def to_AuxCoords(self, location):
# # factory method
# # return the lazy AuxCoord(...), AuxCoord(...)
#
# def to_MeshCoord(self, location, axis):
# # factory method
# # return MeshCoord(..., location=location, axis=axis)
# # use Connectivity.indices_by_src() for fetching indices.
#
# def to_MeshCoords(self, location):
# # factory method
# # return MeshCoord(..., location=location, axis="x"), MeshCoord(..., location=location, axis="y")
# # use Connectivity.indices_by_src() for fetching indices.
#
Expand Down Expand Up @@ -901,6 +919,12 @@ def equal(self, other, lenient=None):
# for member in self._members:
# yield member
#
# def __getstate__(self):
# pass
#
# def __setstate__(self, state):
# pass
#
# def coord(self, **kwargs):
# # see Cube.coord for pattern, checking for a single result
# return self.coords(**kwargs)[0]
Expand Down Expand Up @@ -978,6 +1002,12 @@ def equal(self, other, lenient=None):
# for member in self._members:
# yield member
#
# def __getstate__(self):
# pass
#
# def __setstate__(self, state):
# pass
#
# def connectivity(self, **kwargs):
# # see Cube.coord for pattern, checking for a single result
# return self.connectivities(**kwargs)[0]
Expand Down