From 7dd2c126d7fab6e3647c8e13d36b9a694360faaa Mon Sep 17 00:00:00 2001 From: Taran Rallings Date: Fri, 29 Jul 2022 15:59:37 +0100 Subject: [PATCH] added export_geojson docstring --- virtual_rainforest/core/grid.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/virtual_rainforest/core/grid.py b/virtual_rainforest/core/grid.py index 7fd17b257..f67569f61 100644 --- a/virtual_rainforest/core/grid.py +++ b/virtual_rainforest/core/grid.py @@ -155,6 +155,13 @@ def _make_hex_grid(cell_area: float, cell_nx: int, cell_ny: int) -> dict: return cell_dict def export_geojson(self, outfile: str): + """Export grid system as geojson file. + + + Args: + outfile: A self.cell_dict returned by a make_square_grid + or make_hex_grid call. + """ # Open a collection for writing. with fiona.open(