Skip to content

Commit 0cd637d

Browse files
committed
Write docstring for write.py module functions
1 parent 18dfbb2 commit 0cd637d

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/bedrock_ge/gi/write.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,19 @@ def write_brgi_db_to_file(
1616
path: str | Path,
1717
driver: str,
1818
) -> None:
19+
"""Writes a Bedrock GI (geospatial) database to a file.
20+
21+
Writes a Bedrock GI (geospatial) database to a file. The file type is
22+
determined by the `driver` argument. Possible values are "GPKG" and "EXCEL".
23+
24+
Args:
25+
brgi_db (BedrockGIDatabase | BedrockGIGeospatialDatabase): The Bedrock GI (geospatial) database.
26+
path (str | Path): The path of the output file.
27+
driver (str): The type of the output file. Possible values are "GPKG" and "EXCEL".
28+
29+
Returns:
30+
None
31+
"""
1932
dict_of_dfs = brgi_db_to_dfs(brgi_db)
2033
if driver.upper() == "GPKG":
2134
write_gi_db_to_gpkg(dict_of_dfs, path)

0 commit comments

Comments
 (0)