Import all the libraries we need


In [ ]:
import tidegates
from tidegates import utils

Create the Toolbox object and run the analysis


In [ ]:
workspace = r'F:\phobson\Tidegates\MB_Small.gdb'
flooder = tidegates.Flooder()

with utils.OverwriteState(True):
    flooder.main_execute(
        workspace=workspace,
        dem='dem_x08',
        zones='ZOI',
        wetlands='wetlands',
        buildings='buildings',
        ID_column='GeoID',
        flood_output='Demo_ipynb_flood',
        building_output='Demo_ipynb_bldg',
        wetland_output='Demo_ipynb_wetland',
        elevations=[4.8, 6.1, 8.9, 10.5]
    )