Skip to content

Commit

Permalink
add additional mesh stubs (#4005)
Browse files Browse the repository at this point in the history
  • Loading branch information
bjlittle authored Feb 15, 2021
1 parent 1f918ef commit 36a93b0
Showing 1 changed file with 35 additions and 5 deletions.
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

0 comments on commit 36a93b0

Please sign in to comment.