Spaces:
Runtime error
Runtime error
File size: 579 Bytes
2c2341d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
Quick Start
===========
.. highlight:: python
After :doc:`/install`, you can import `tomorrowcities`
package and start generating exposure data or calculating
impact metrics.
.. code-block:: python
import tomorrowcities as tc
dg = tc.DataGenerator(parameter_file='distribution_table.xlsx',
land_use_file='landuse.zip')
building, household, individual, land_use = dg.generate(seed=42)
metrics = dg.run_engine(building, household, individual, land_use,
hazard_scenario="FLOOD", hazard_data="flood.xlsx", policies=None):
|