diff --git a/mosaic/descriptor.py b/mosaic/descriptor.py index 970ff0b..8094864 100644 --- a/mosaic/descriptor.py +++ b/mosaic/descriptor.py @@ -21,8 +21,7 @@ def attr_to_bool(attr: str): - """Format attribute strings and return a boolean value - """ + """ Format attribute strings and return a boolean value """ match attr.strip().upper(): case "YES": return True @@ -186,8 +185,7 @@ def fix_outofbounds_indices(ds: Dataset, array_name: str) -> Dataset: @property def projection(self) -> CRS: - """The target projection for plotting. - """ + """ The target projection for plotting. """ return self._projection @projection.setter @@ -216,15 +214,15 @@ def projection(self, projection: CRS) -> None: @property def latlon(self) -> bool: - """Boolean whether the lat/lon coordinate arrays should be used for + """ + Boolean whether the lat/lon coordinate arrays should be used for patch construction. """ return self._latlon @latlon.setter def latlon(self, value) -> None: - """TODO: check that the passed value is consistent with transform - """ + """ TODO: check that the passed value is consistent with transform """ if self.is_spherical: value = True @@ -372,8 +370,7 @@ def _fix_antimeridian(self, patches, loc, projection=None): def _compute_cell_patches(ds: Dataset) -> ndarray: - """Create cell patches (i.e. Primary cells) for an MPAS mesh. - """ + """Create cell patches (i.e. Primary cells) for an MPAS mesh.""" # get the maximum number of edges on a cell maxEdges = ds.sizes["maxEdges"] # connectivity arrays have already been zero indexed @@ -396,8 +393,7 @@ def _compute_cell_patches(ds: Dataset) -> ndarray: def _compute_edge_patches(ds: Dataset) -> ndarray: - """Create edge patches for an MPAS mesh. - """ + """Create edge patches for an MPAS mesh.""" # connectivity arrays have already been zero indexed cellsOnEdge = ds.cellsOnEdge @@ -430,8 +426,7 @@ def _compute_edge_patches(ds: Dataset) -> ndarray: def _compute_vertex_patches(ds: Dataset) -> ndarray: - """Create vertex patches (i.e. Dual Cells) for an MPAS mesh. - """ + """Create vertex patches (i.e. Dual Cells) for an MPAS mesh.""" nVertices = ds.sizes["nVertices"] vertexDegree = ds.sizes["vertexDegree"]