Skip to content

Commit d45d754

Browse files
committed
create Building_footprints output folder
1 parent e753f94 commit d45d754

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

hydromt_fiat/fiat.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -747,8 +747,6 @@ def setup_aggregation_areas(
747747
shutil.copy2(aggregation_area_fn, additional_att)
748748

749749

750-
# TODO loop over file names and copy into self.root (create directory (aggregation and BF))
751-
752750
def setup_building_footprint(
753751
self,
754752
building_footprint_fn: Union[str, Path],
@@ -774,7 +772,10 @@ def setup_building_footprint(
774772
building_footprint_fn,
775773
attribute_name,
776774
)
777-
# TODO: loop over file names and copy into self.root (create directory (aggregation and BF))
775+
building_footprints = Path(self.root).joinpath("output" , "building_footprints")
776+
if not os.path.exists(building_footprints):
777+
os.makedirs(building_footprints)
778+
shutil.copy2(building_footprint_fn, building_footprints)
778779

779780
# Update functions
780781
def update_all(self):

0 commit comments

Comments
 (0)