Source code for pymt.grids.grid_type

[docs]class GridType: _type = None def __eq__(self, that): return isinstance(that, self.__class__) or str(self) == str(that) def __str__(self): return self._type def __repr__(self): return "%s()" % self.__class__.__name__
[docs]class GridTypeRectilinear(GridType): _type = "rectilinear"
[docs]class GridTypeStructured(GridType): _type = "structured"
[docs]class GridTypeUnstructured(GridType): _type = "unstructured"