Skip to content

Commit

Permalink
Stop appending to GeoPackage
Browse files Browse the repository at this point in the history
  • Loading branch information
visr committed Mar 29, 2024
1 parent e718620 commit 0186a86
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions python/ribasim/ribasim/input_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -355,16 +355,14 @@ def _from_db(cls, path: Path, table: str):

def _write_geopackage(self, path: Path, crs: str) -> None:
"""
Write the contents of the input to a geopackage.
Write the contents of the input to the GeoPackage.
Parameters
----------
path : Path
"""
assert self.df is not None
self.df.set_crs(crs).to_file(
path, layer=self.tablename(), driver="GPKG", mode="a"
)
self.df.set_crs(crs).to_file(path, layer=self.tablename(), driver="GPKG")


class ChildModel(BaseModel):
Expand Down

0 comments on commit 0186a86

Please sign in to comment.