Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stable version of the fiat_integrator #124

Merged
merged 384 commits into from
Oct 19, 2023
Merged
Show file tree
Hide file tree
Changes from 250 commits
Commits
Show all changes
384 commits
Select commit Hold shift + click to select a range
f93f9e0
Added the driver as GPKG to write_geoms to write correctly the geopac…
frederique-hub Jun 23, 2023
9a7f3af
Changed spatial_reference to elevation_reference for FIAT config file
frederique-hub Jun 29, 2023
bb7529e
Updated hydromt-fiat-dev.yml
frederique-hub Jun 29, 2023
cb02c64
Fixed geojson format in the gpkg, now its really saved as a gpkg
frederique-hub Jun 29, 2023
e364e53
get_tables does not exists
srpeiter Jun 30, 2023
7e79af7
Fix in fiat.py and update test_integrations_hazard.py
frederique-hub Jul 3, 2023
130d24b
Merge branch 'fiat_integrator' of https://github.com/Deltares/hydromt…
frederique-hub Jul 3, 2023
9cc57ed
fix issue with exxtraction method
srpeiter Jul 4, 2023
5dba60c
Merge pull request #111 from Deltares/fiat_integrator_fix
srpeiter Jul 4, 2023
2deb0ca
Reading geoms and saving in object ExposureVector.exposure_geoms
frederique-hub Jul 4, 2023
e2a09a3
Merge branch 'fiat_integrator' of https://github.com/Deltares/hydromt…
frederique-hub Jul 4, 2023
53eb204
Update to charleston area
frederique-hub Jul 4, 2023
76c067b
removed commented line
frederique-hub Jul 4, 2023
e7d96a3
Added hydromt_sfincs to the environment yml
frederique-hub Jul 4, 2023
8fafd99
Updates reading and writing vulnerability_curves.csv
frederique-hub Jul 4, 2023
690201b
Updates to fix bugs in reading in an existing model
frederique-hub Jul 4, 2023
75a3a75
Bugfixes after running tests.
frederique-hub Jul 4, 2023
4155846
Updated tests and implamented gdal compliance for netCDFs
frederique-hub Jul 4, 2023
885cd5e
Skip hazard test, for @Mares2022 to improve later
frederique-hub Jul 4, 2023
c0c1dc1
Added test data
frederique-hub Jul 6, 2023
0a20dfc
Added cache folder to the gitignore
frederique-hub Jul 6, 2023
2a6c902
Updated tests with new test data on the repos
frederique-hub Jul 6, 2023
82e3fda
modified to run fiat risk
srpeiter Jul 6, 2023
f716a7f
Merge branch 'fiat_integrator' of github.com:Deltares/hydromt_fiat in…
srpeiter Jul 6, 2023
976b234
Delete uitls
frederique-hub Jul 7, 2023
319c399
Modification of loadflood maps tool
Mares2022 Jul 7, 2023
da5d9f9
Change hazard to make it compatible with sfincs inputs
Mares2022 Jul 7, 2023
55298fd
Update test to read only maps without rp dimension
Mares2022 Jul 7, 2023
24293fc
merged with fiat_integrator
Mares2022 Jul 7, 2023
c31cb42
Merge pull request #114 from Deltares/fiat_integrator_hazard_risk
Mares2022 Jul 7, 2023
efd1bf4
commiting before pulling mario changes
srpeiter Jul 7, 2023
3bd1389
commiting before pulling mario changes, second time
srpeiter Jul 7, 2023
98865a2
merged with fiat_integrator branch from local fiat_integrator branch
srpeiter Jul 7, 2023
b4f4376
typo in fiat setting toml file fixed: return_period to return_periods
srpeiter Jul 11, 2023
f616bcf
Updated typehinting in select_objects function
frederique-hub Jul 13, 2023
758bfdb
Merge branch 'fiat_integrator' of https://github.com/Deltares/hydromt…
frederique-hub Jul 13, 2023
3436286
Correct netCDF files to be compatible with Delft-fiat
Mares2022 Jul 13, 2023
ca00fbd
Merge branch 'fiat_integrator' of https://github.com/Deltares/hydromt…
Mares2022 Jul 13, 2023
dcfd4a9
Updating test_integration_hazard.py with multiple inputs (geotif, sfi…
Mares2022 Jul 13, 2023
b238b5c
Update test_integration_hazard.py
Mares2022 Jul 13, 2023
b6f1e9e
Changed scale to step_size
frederique-hub Jul 13, 2023
c5ce9a2
Implemented the possibility to have multiple exposure_geoms in the Ex…
frederique-hub Jul 14, 2023
78bd68f
Updating tests and fixing bugs after the change from a single to mult…
frederique-hub Jul 14, 2023
eaae16d
Added update_all to the write method
frederique-hub Jul 14, 2023
25b224c
Removing pre-existing test results
frederique-hub Jul 14, 2023
d6bc36a
Saving multiple gkpg with different names
frederique-hub Jul 31, 2023
549b86e
Added extraction method assignment in the truncate damage function an…
frederique-hub Jul 31, 2023
8e17eda
Testing with two damage function types
frederique-hub Jul 31, 2023
602e9a3
Aligned names of the new damage function for the new_composite_area
frederique-hub Aug 1, 2023
71671dd
Merge branch 'fiat_integrator' of https://github.com/Deltares/hydromt…
frederique-hub Aug 1, 2023
984232b
Removing dependencies on the columns X coordinate and Y coordinate (N…
frederique-hub Aug 2, 2023
6ad61c7
Added comment
frederique-hub Aug 8, 2023
6a5bec6
Updated hydromt version to 0.7.1 and added hydromt_sfincs
frederique-hub Aug 8, 2023
c43cad7
Deleted redundant data catalog
frederique-hub Aug 8, 2023
e35141e
Added standard global data catalog
frederique-hub Aug 8, 2023
1ff026e
Deleted old example
frederique-hub Aug 8, 2023
1007757
Updated and added preprocessed JRC damage functions and values
frederique-hub Aug 8, 2023
a5c4310
Added a global data catalog
frederique-hub Aug 8, 2023
6936c73
Updated example data
frederique-hub Aug 8, 2023
038e6b7
Updates related to the test_vulnerability_exposure_global_default. Ad…
frederique-hub Aug 8, 2023
4a89e0e
Updated environment files and removed rasterio
frederique-hub Aug 9, 2023
4dd4792
Added osmnx
frederique-hub Aug 9, 2023
2a37784
Specified Pydantic version 1.10.9 to comply with FloodAdapt
frederique-hub Aug 9, 2023
6ba8395
Fixed formatting issue of version dependencies
frederique-hub Aug 9, 2023
5af6aa8
Trying again to fix the dependencies syntax
frederique-hub Aug 9, 2023
d3433cf
Fixed typing import, upgrade pydantic to version 1.10.9
frederique-hub Aug 9, 2023
3606e72
Successfully written a model from OSM and JRC data
frederique-hub Aug 9, 2023
f11acc6
Reversed the removal of the Link column, added a damage type column (…
frederique-hub Aug 9, 2023
a4b25f2
Final update environment files
frederique-hub Aug 16, 2023
3187200
Update to newer HydroMT core version
frederique-hub Aug 17, 2023
ee16141
Update test and related files
frederique-hub Aug 17, 2023
7cfea28
Fixing code according to make test_vulnerability_exposure pass
frederique-hub Aug 17, 2023
44ba5a9
Updated test and added an example for default global model building
frederique-hub Aug 18, 2023
9f8d5a7
Added ipykernel for the examples
frederique-hub Aug 21, 2023
ce64a83
Changed test location to the folder on the P-drive
frederique-hub Aug 21, 2023
ce01201
Reversed back to kwargs to comply with the 7.1 version of HydroMT
frederique-hub Aug 21, 2023
e36a4ec
Deleted randomly appeared file
frederique-hub Aug 21, 2023
93f9805
added the result from the example to the .gitignore
frederique-hub Aug 21, 2023
56fce6d
Finalized first version of the global_OSM_JRC example
frederique-hub Aug 21, 2023
945d35a
Removed pandas
frederique-hub Aug 21, 2023
95da43f
Implemented an assert for the rase ground floor height test
frederique-hub Aug 23, 2023
32c4dea
Updated notebook explainers, and added domain definition through a ge…
WOTrompDeltares Aug 23, 2023
87fb929
Added more assert statements to tests
frederique-hub Aug 23, 2023
935849e
Merge pull request #126 from Deltares/TutorialNotebookDev
frederique-hub Aug 23, 2023
6cc8093
Small textual revisions after Willems update
frederique-hub Aug 23, 2023
347a821
Added functionality to read separate vulnerability curves from csvs a…
frederique-hub Aug 24, 2023
a4c6b64
Finalized reading function from multiple csvs and test including asserts
frederique-hub Aug 24, 2023
830684f
added more assert statements
frederique-hub Aug 24, 2023
7c2d9ce
Updated functionality to use user-input land use data
frederique-hub Aug 24, 2023
41b5698
Updated tests including asserts
frederique-hub Aug 24, 2023
ce911de
Updated tests with asserts
frederique-hub Aug 24, 2023
d289bf3
Changed Python version in testing to 3.10
frederique-hub Aug 24, 2023
e9eaa40
Updated docs
frederique-hub Aug 24, 2023
a7a74e1
Updated readme's
frederique-hub Aug 25, 2023
cffb0b7
Small fix to get the gdf before filtering
frederique-hub Aug 30, 2023
73a995a
Update configuration variable
frederique-hub Aug 30, 2023
1c1c5d0
Updating to HydroMT version 0.8.0
frederique-hub Aug 31, 2023
a5aea97
change kwargs into driver_kwargs with HydroMT version 0.8.0
frederique-hub Aug 31, 2023
4ccc51c
Added units for vulnerability and exposure
frederique-hub Aug 31, 2023
e6d3377
Added unit conversion for the sfincs output
frederique-hub Sep 1, 2023
b1833a7
Merge pull request #127 from Deltares/env_fix
frederique-hub Sep 1, 2023
4175663
Added pyogrio to the dependencies
frederique-hub Sep 7, 2023
2e72302
Added pyogrio driver to all the gpd.read_file functions
frederique-hub Sep 7, 2023
45cf33e
Fixed bug in double saving exposure geom files with names different f…
frederique-hub Sep 7, 2023
6402da5
added option for bfe from table when elevating
panosatha Sep 8, 2023
ef79211
Updated social vulnerability module
LiekeMeijer Sep 13, 2023
2bc81ef
Merge branch 'fiat_integrator' of https://github.com/Deltares/hydromt…
LiekeMeijer Sep 13, 2023
8f5464d
Changes name of the sfincs map when doing a risk calculation
frederique-hub Sep 13, 2023
6cc1093
Merge pull request #130 from Deltares/128-read-bfe-from-csv
frederique-hub Sep 13, 2023
5a03a21
changed back to working version
panosatha Sep 14, 2023
c0e1a36
Merge pull request #131 from Deltares/correct_risk_mapping
panosatha Sep 14, 2023
177adb8
small update in settings toml
panosatha Sep 25, 2023
3132a34
Merge pull request #136 from Deltares/env_fix
frederique-hub Sep 26, 2023
4609f96
adding aggregation function
Santonia27 Sep 26, 2023
ef2ebe2
Comments and todos for the hazard functionality
frederique-hub Sep 26, 2023
34450e9
Cleaning database
frederique-hub Sep 26, 2023
4906f9c
Added default US vulnerability curves (file not in repos yet, first n…
frederique-hub Sep 26, 2023
716cf1c
Updated workflows, to be tested when pushing to the main branch.
frederique-hub Sep 26, 2023
95e8872
Removed all docs dependencies
frederique-hub Sep 26, 2023
331beb6
Added an environment for the docs
frederique-hub Sep 26, 2023
690c2b7
Moved the global data catalog to the examples folder
frederique-hub Sep 26, 2023
bea0804
Updated path according to the move of the hydromt_fiat_catalog_global…
frederique-hub Sep 26, 2023
ccc9d14
starting to use multiple aggregation layers
Santonia27 Sep 26, 2023
58f2e00
finish single aggregation file
Santonia27 Sep 26, 2023
6001de8
update
frederique-hub Sep 26, 2023
026b74f
Added missing depencendy us
frederique-hub Sep 27, 2023
1e69ef1
Update documentation
frederique-hub Sep 27, 2023
16a20ba
create script to add unlimited aggregation areas - needs refinement
Santonia27 Sep 27, 2023
1adc043
updated test for single&multipe aggregation areas
Santonia27 Sep 27, 2023
86b79c5
corrected unit conversion bug for risk
panosatha Sep 27, 2023
9a12420
if statement iterating column names by attribute
Santonia27 Sep 27, 2023
e4131af
Update of documentation
frederique-hub Sep 27, 2023
fe4e56c
Merge pull request #139 from Deltares/#116-Online-documentation
frederique-hub Sep 27, 2023
609ffd0
Moved to the examples folder
frederique-hub Sep 27, 2023
d488ced
Merge branch 'fiat_integrator' into #135-hazus-damage-functions-linki…
frederique-hub Sep 27, 2023
4e28cdf
test 3 cases
Santonia27 Sep 27, 2023
1ae3736
Merge pull request #138 from Deltares/#135-hazus-damage-functions-lin…
Mares2022 Sep 27, 2023
2651724
Applied black, implemented the geom_names variable for ExposureVector…
frederique-hub Sep 27, 2023
2f5bcd0
Ordering return periods and adding them as new bands in the netcdf
Mares2022 Sep 27, 2023
e609e0a
Updated tests according to changes issue #137
frederique-hub Sep 27, 2023
4d5b37b
Update docstring
frederique-hub Sep 27, 2023
482abd4
First commit for issue #140
frederique-hub Sep 27, 2023
3bfbf96
dropping duplicates and aggregation overlapin list
Santonia27 Sep 28, 2023
afcce8e
transform single list values into variable
Santonia27 Sep 28, 2023
1d427a4
everything in one loop
Santonia27 Sep 28, 2023
4faa5cc
Deleted pygeos as dependency because of the migration to shapely with…
frederique-hub Sep 28, 2023
cb26fd5
updated overlap function
Santonia27 Sep 28, 2023
2575f16
Updated code according to dependency warning messages and continued t…
frederique-hub Sep 28, 2023
686d08a
Merge pull request #141 from Deltares/#137-allow-to-use-different-nam…
frederique-hub Sep 28, 2023
47431bc
Merge branch '#140-Allow-user-input-data-for-occupancy-type-and-match…
frederique-hub Sep 28, 2023
6440972
Merge pull request #143 from Deltares/fiat_integrator
frederique-hub Sep 28, 2023
bff635f
Both exposure from OSM download and user-input land use data and user…
frederique-hub Sep 28, 2023
a1c1b87
Merge pull request #144 from Deltares/#140-Allow-user-input-data-for-…
frederique-hub Sep 28, 2023
98deeaa
My suggestion for finalizing the code - it must be tested though!
frederique-hub Sep 28, 2023
a229f70
Moved a few functions to the new gis.py file
frederique-hub Sep 28, 2023
fa51da4
Update with new function to join_spatial_data (generic function for a…
frederique-hub Sep 28, 2023
5cfaa83
Update function to add data
frederique-hub Sep 28, 2023
1342ff8
adding the correct import package names
Santonia27 Sep 29, 2023
aa307f3
Merge branch '#64FlexibleAggregationArea' into fiat_integrator
frederique-hub Sep 29, 2023
18ad6b2
Merge pull request #148 from Deltares/fiat_integrator
frederique-hub Sep 29, 2023
59e6b54
Implemented the join_spatial_data function a bit better with some checks
frederique-hub Sep 29, 2023
8e1bf45
Update docs.yml
frederique-hub Sep 29, 2023
54a069d
updated according to freqeriques code
Santonia27 Sep 29, 2023
78670bf
Delete .github/workflows/tests.yml
frederique-hub Sep 29, 2023
c4be3ac
Create vulnerability.rst
frederique-hub Sep 29, 2023
bf601f7
Added missing data to the example
frederique-hub Sep 29, 2023
3ce4629
Update user_guide_overview.rst
Santonia27 Sep 29, 2023
4db8569
Merge branch '#64FlexibleAggregationArea' of https://github.com/Delta…
Santonia27 Sep 29, 2023
5af8bbf
Update user_guide_overview.rst
Santonia27 Sep 29, 2023
efe3ad0
Update docs
frederique-hub Sep 29, 2023
d629453
Merge pull request #149 from Deltares/#116-Online-documentation
frederique-hub Sep 29, 2023
44638f9
Update user_guide_overview.rst
Santonia27 Oct 1, 2023
58c9375
Update user_guide_overview.rst
Santonia27 Oct 1, 2023
93f1007
Create Example notebook for aggregation zones
Santonia27 Oct 1, 2023
d01e0e8
Merge branch '#64FlexibleAggregationArea' of https://github.com/Delta…
Santonia27 Oct 1, 2023
1d78b18
deleted notebook, error
Santonia27 Oct 1, 2023
b70f967
example notebook aggregation zones
Santonia27 Oct 1, 2023
8e22d02
First draft aggregation example Notebook
Santonia27 Oct 1, 2023
c011e44
update first draft
Santonia27 Oct 1, 2023
05cf6d7
update aggregation notebook
Santonia27 Oct 2, 2023
00ed9bb
updated file path
Santonia27 Oct 2, 2023
54df137
Change file path, Update notebook, create yaml file for aggregation c…
Santonia27 Oct 2, 2023
8e6a944
insert interactive geopandas map
Santonia27 Oct 2, 2023
b598ecf
update notebook, adding example data. Must be updated
Santonia27 Oct 2, 2023
dfb1ff3
changed order
Santonia27 Oct 2, 2023
1448ad3
order update
Santonia27 Oct 2, 2023
f581d84
add legend to map
Santonia27 Oct 2, 2023
66e7bcc
Removal of redundant functions, integration of grid functions to save…
Mares2022 Oct 3, 2023
7762c92
Updated the test data, it comes from NSI (exposure) and Hazus default…
frederique-hub Oct 3, 2023
1ad8620
update interactive map and fix environment. Model run
Santonia27 Oct 3, 2023
3ac5731
final commit of the day
Santonia27 Oct 3, 2023
2f6f3e6
update notebook
Santonia27 Oct 4, 2023
959a29c
aggregation zone fine tuning
Santonia27 Oct 4, 2023
2baccd3
Merge branch 'fiat_integrator' into #64FlexibleAggregationArea
frederique-hub Oct 4, 2023
e7b6842
Update aggregation relative path user_guide_overview.rst
Santonia27 Oct 4, 2023
c7480cf
Update tests for hazard set up
Mares2022 Oct 4, 2023
f2378d3
Update docs/user_guide/user_guide_overview.rst
Santonia27 Oct 4, 2023
ee770e3
Update yaml example_guide_overview.rst
Santonia27 Oct 4, 2023
39c1cde
removed the unused imports and changed the names of the test
frederique-hub Oct 4, 2023
44c3e5b
Delete tests/test_hazard.py
frederique-hub Oct 4, 2023
311c091
update aggregation notebook and agg_config.yml
Santonia27 Oct 5, 2023
46d49c9
Merge branch '#64FlexibleAggregationArea' of https://github.com/Delta…
Santonia27 Oct 5, 2023
84ed31e
spelling mistake
Santonia27 Oct 5, 2023
a2796c4
Update aggregationzones.rst
Santonia27 Oct 5, 2023
ce40926
Improvement_aggregation_zones.rst
Santonia27 Oct 5, 2023
eeb21a2
create new test for building footprints
Santonia27 Oct 5, 2023
8772840
update aggregation test file path
Santonia27 Oct 5, 2023
e03c1d6
deleted output folder of test result
Santonia27 Oct 5, 2023
10dd8b6
create building footprint test
Santonia27 Oct 5, 2023
aacde2c
update fiat.py, create bf function, create bf test
Santonia27 Oct 5, 2023
ae862fb
update bf_test and function
Santonia27 Oct 5, 2023
634ec84
added vector lazer overlap function
Santonia27 Oct 5, 2023
c704cef
Sorted imports, made paths relative, moved files a bit
frederique-hub Oct 5, 2023
807d0b1
Merge pull request #150 from Deltares/#64FlexibleAggregationArea
frederique-hub Oct 5, 2023
216681c
Made the imports explicit, updated some documentation
frederique-hub Oct 6, 2023
5500288
Moved set_tables to the bottom of the function
frederique-hub Oct 6, 2023
9e19d78
update doc string. Add check to BF test for unique ID
Santonia27 Oct 6, 2023
6f99c73
add nearest neighbor in bf_exposure_join, function must be improved
Santonia27 Oct 6, 2023
c6b5026
cleaning building footprint code
Santonia27 Oct 9, 2023
2e75ca4
add relative path to bf_test
Santonia27 Oct 9, 2023
bce3b93
Merge pull request #168 from Deltares/PR#124-updates
frederique-hub Oct 10, 2023
fb2670e
Merge branch '#146-and-#125-gis-functions-in-separate-file-and-ground…
frederique-hub Oct 10, 2023
d5096de
Update LICENSE
frederique-hub Oct 12, 2023
ae093cf
Update README.rst
frederique-hub Oct 12, 2023
de2e12d
Update pyproject.toml
frederique-hub Oct 12, 2023
d9a9f41
corrected raising of buildings when using datum reference
panosatha Oct 13, 2023
6cbe514
Added test for raising ground floor height relative to datum
frederique-hub Oct 13, 2023
6fadf32
Merge pull request #172 from Deltares/correct_raise_datum
frederique-hub Oct 13, 2023
b6399cf
Merge pull request #174 from Deltares/env_fix
frederique-hub Oct 13, 2023
0de2aa0
Modifications made after Frederique's review
Mares2022 Oct 16, 2023
da08b5a
update directory path
Santonia27 Oct 16, 2023
0d461cc
Making hazard functions explicits after Dirk review
Mares2022 Oct 16, 2023
3192d50
Change of .rio for .raster hyndromt core function
Mares2022 Oct 16, 2023
26a702a
Adding parameter geom when reading raster data
Mares2022 Oct 16, 2023
00cecae
Removing test using sfincs_map.nc
Mares2022 Oct 16, 2023
08700e5
Updated building footprints code and test, added assert statements
frederique-hub Oct 16, 2023
ce694f0
Merge branch '#133_Spatialbuildingfootprint' of https://github.com/De…
frederique-hub Oct 16, 2023
536211b
Merge branch 'fiat_integrator' into #115-Check-and-update-hazard-model
frederique-hub Oct 16, 2023
1befd34
Merge pull request #151 from Deltares/#115-Check-and-update-hazard-model
frederique-hub Oct 16, 2023
a66d031
Added to gitignore
frederique-hub Oct 16, 2023
e5cea56
Cleaned folder structure
frederique-hub Oct 16, 2023
d808ff7
Merge pull request #175 from Deltares/clean_aggregation_area_examples…
frederique-hub Oct 16, 2023
c189218
inner merge to not discard values
Santonia27 Oct 16, 2023
210696e
add check that original and new exposure have same length
Santonia27 Oct 16, 2023
d191a0e
Merge branch 'fiat_integrator' into #133_Spatialbuildingfootprint
frederique-hub Oct 19, 2023
7447b65
Merge pull request #170 from Deltares/#133_Spatialbuildingfootprint
frederique-hub Oct 19, 2023
1b5616a
split the get_table_and_metadata function into two functions
frederique-hub Oct 19, 2023
226d479
Update the geoms and table properties of the FiatModel now only when …
frederique-hub Oct 19, 2023
3dff621
Updated settings.toml configuration file output
frederique-hub Oct 19, 2023
dc09f25
Merge pull request #181 from Deltares/180-make-a-property-in-the-fiat…
frederique-hub Oct 19, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
61 changes: 40 additions & 21 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,22 @@
name: Build Docs
name: Build Documentation

# We don't want pushes (or PRs) to gh-pages to kick anything off
on:
push:
branches: [ main ]
paths:
- tests/*
- hydromt_fiat/*
- docs/*
- examples/*
- pyproject.toml
pull_request:
branches: [ main ]
paths:
- tests/*
- hydromt_fiat/*
- docs/*
- examples/*
- pyproject.toml

jobs:
# Build docs on Linux
Expand All @@ -20,43 +31,51 @@ jobs:
steps:
- name: Checkout source
uses: actions/checkout@v2

# - name: Get tags
# run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*

- name: Setup environment
- name: Setup Mambaforge
uses: conda-incubator/setup-miniconda@v2
with:
python-version: "3.9"
mamba-version: "*"
channels: conda-forge,defaults
channel-priority: true
environment-file: envs/hydromt-fiat-dev.yml
activate-environment: hydromt-fiat-dev
python-version: "3.10"
miniforge-variant: Mambaforge
miniforge-version: latest
channels: conda-forge
activate-environment: hydromt-fiat-docs
use-mamba: true

- name: Set cache date
run: echo "DATE=$(date +'%Y%m%d')" >> $GITHUB_ENV

- name: load from cache if it exists for our environment
uses: actions/cache@v3
with:
path: /usr/share/miniconda3/envs/hydromt-fiat-docs
key: docs-conda-${{ hashFiles('envs/hydromt-fiat-docs.yml') }}-${{ env.DATE }}
id: cache

- name: Update environment & write to cache
run: mamba env update -n hydromt-fiat-docs -f envs/hydromt-fiat-docs.yml
if: steps.cache.outputs.cache-hit != 'true'

- name: Install hydromt-fiat
run: flit install
run: pip install .

# Move examples folder before make html for nbsphinx
- name: Build docs
if: ${{ github.event_name != 'pull_request' && !github.event.act }}
run: |
mv examples docs/_examples
pushd docs
make html
popd

# This overrides the version "dev" with the proper version if we're building off a
# branch that's not main (which is confined to n.nn.x above) or on a tag.
- name: Set doc version
if: ${{ github.event_name != 'push' || !contains(github.ref, 'main') }}
run: echo "DOC_VERSION=$(python -c 'from hydromt_fiat import __version__ as v; print("dev" if "dev" in v else "v"+v.replace(".dev",""))')" >> $GITHUB_ENV

- name: Upload to GitHub Pages
if: ${{ github.event_name != 'pull_request'}}
if: ${{ github.event_name != 'pull_request' && !github.event.act }}
uses: peaceiris/actions-gh-pages@v3.8.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/_build/html
exclude_assets: '.buildinfo,_sources/*'
exclude_assets: .buildinfo,_sources/*,_examples/*.ipynb
destination_dir: ./${{ env.DOC_VERSION }}
keep_files: false
full_commit_message: Deploy ${{ env.DOC_VERSION }} to GitHub Pages
full_commit_message: Deploy ${{ env.DOC_VERSION }} to GitHub Pages
47 changes: 0 additions & 47 deletions .github/workflows/tests.yml
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I recommend to drop support for python 3.8 (core also doesn't support this any longer) and test with py 3.9-3.11.
Also it would be great to perform tests with the latest hydromt release as well as the latest main branch to quickly spot possible required updates in the plugin and/or the core. Brendan and/or Sam can help you with this.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I actually deleted the tests.yml workflow file because until now we have been testing locally only, because we have been working with larger files. It would be nice however to set up a testing suite in Github Workflows. We have an issue for it: #25 and I included your suggestion there so we can consider it!

This file was deleted.

5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -117,3 +117,8 @@ venv.bak/
# dask
/local_test_database

/examples/data/miami_dade_landuse.gpkg
cache
/examples/FIAT_database
hydromt_fiat/data/damage_functions/flooding/AllDDF_HAZUS_fractions.xlsx
hydromt_fiat/data/damage_functions/flooding/~$AllDDF_HAZUS_fractions.xlsx
28 changes: 13 additions & 15 deletions README.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
hydroMT-fiat: FIAT plugin for hydroMT
#########################################
HydroMT-FIAT: HydroMT plugin for Delft-FIAT
############################################

.. image:: https://codecov.io/gh/Deltares/hydromt_fiat/branch/main/graph/badge.svg
:target: https://codecov.io/gh/Deltares/hydromt_fiat
Expand All @@ -20,46 +20,44 @@ hydroMT-fiat: FIAT plugin for hydroMT
:target: https://mybinder.org/v2/gh/Deltares/hydromt_fiat/main?urlpath=lab/tree/examples


hydroMT_ is a python package, developed by Deltares, to build and analysis hydro models.
HydroMT_ is a python package, developed by Deltares, to build and analyze hydro models.
It provides a generic model api with attributes to access the model schematization,
(dynamic) forcing data, results and states. This plugin provides an implementation
for the FIAT_ model.
for the Delft-FIAT_ model.


.. _hydromt: https://deltares.github.io/hydromt
.. _FIAT: https://storymaps.arcgis.com/stories/687a256881b94bf6ad20677543bb8cf2
.. _Delft-FIAT: https://www.deltares.nl/en/software-and-data/products/delft-fiat-flood-impact-assessment-tool


Installation
------------

hydroMT-fiat will soon be availble from pypi and conda-forge (in progress).
HydroMT-FIAT is available from pypi and will be added to conda-forge (in progress).

To install hydromt_fiat using pip do:
To install hydromt_fiat for usage, do:

.. code-block:: console

pip install hydromt_fiat

We recommend installing a hydromt-fiat environment including the hydromt_fiat package
based on the environment.yml file. This environment will install all package dependencies
including the core of hydroMT_.
For developing on HydroMT-FIAT, do:

.. code-block:: console

conda env create -f binder/environment.yml
conda activate hydromt-fiat
pip install hydromt_fiat
conda env create -f envs/hydromt-fiat-dev.yml
conda activate hydromt-fiat-dev
pip install -e .

Documentation
-------------

Learn more about the hydroMT_fiat plugin in its `online documentation <https://deltares.github.io/hydromt_fiat/>`_
Learn more about the HydroMT-FIAT plugin in its `online documentation <https://deltares.github.io/hydromt_fiat/>`_

Contributing
------------

You can find information about contributing to hydroMT at our `Contributing page <https://deltares.github.io/hydromt_fiat/latest/contributing.html>`_.
You can find information about contributing to HydroMT at our `Contributing page <https://deltares.github.io/hydromt/latest/dev/contributing>`_.

License
-------
Expand Down
26 changes: 9 additions & 17 deletions binder/environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,32 +4,24 @@ channels:
- conda-forge

dependencies:
- affine
- click
- black
- bottleneck
- cartopy # to run examples
- dask
- descartes # to run examples
- entrypoints
- flit>=3.2
- gdal>=3.1
- geopandas
- hydromt>=0.4.1
- jupyterlab # to run examples
- netcdf4
- matplotlib # to run examples
- numba
- hydromt=0.8.0
- hydromt_sfincs
- numpy
- openpyxl
- osmnx
- pandas
- pip
- pyflwdir>=0.4.7
- pygeos>=0.8
- python>=3.7
- rasterio
- python=3.10
- pydantic=1.10.9
- pytest
- requests
- scipy
- xarray
- zarr
- pip:
- us
- census

1 change: 1 addition & 0 deletions docs/_static/deltares-blue.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_static/fiat.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_static/format_vulnerability_curves.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading