Skip to content
This repository was archived by the owner on Aug 5, 2026. It is now read-only.

Commit bdaf01d

Browse files
committed
add: baerum params to 3-30-300
- future todo move params to yml
1 parent f3a8946 commit bdaf01d

1 file changed

Lines changed: 9 additions & 6 deletions

File tree

temp/tree_visibility/sql_rule_3_30_300.py

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -740,11 +740,14 @@ def main(district_numbers, parquet_dir, db_path, reporting_dir):
740740

741741

742742
if __name__ == "__main__":
743+
744+
# TODO move params to params.yml/catalog.yml
743745
# params
744-
municipality = "bodo"
745-
projection = 25833
746-
#district_numbers = range(30101, 30161)
747-
district_numbers = range(180401, 180411)
746+
municipality = "baerum"
747+
projection = 25832
748+
#district_numbers = range(30101, 30161) # oslo
749+
#district_numbers = range(180401, 180411) # bodo
750+
district_numbers = range(302421, 302423) # baerum
748751

749752
# path to data
750753
root = r"/data/P-Prosjekter2/"
@@ -768,9 +771,9 @@ def main(district_numbers, parquet_dir, db_path, reporting_dir):
768771
db_path = os.path.join(parquet_dir, "duckdb_temp.db")
769772

770773
# remove duckdb database
771-
# remove_duckdb_database(db_path)
774+
remove_duckdb_database(db_path)
772775

773-
#main(district_numbers, parquet_dir, db_path, reporting_dir)
776+
main(district_numbers, parquet_dir, db_path, reporting_dir)
774777

775778
# export all tables to csv
776779
concat_all_csvs(geojson_dir, reporting_dir, district_numbers, projection)

0 commit comments

Comments
 (0)