QUIC-Fire-TT / ttrs_quicfire

ttrs_quicfire is a Python library to easily configure burn models for plots of land defined using shape files for the quicfire model.
MIT License
0 stars 1 forks source link

Normal windfields #15

Open ntutland opened 1 year ago

ntutland commented 1 year ago

When running main.py with a normal (not custom) windfield, I get the following error:

File "C:\Users\FireScience\anaconda3\envs\FastFuels\lib\site-packages\ttrs_quicfire\quic_fire.py", line 178, in calc_normal_windfield
    times = list(range(start_time, start_time + self.dom.sim_time + 1, shift_int))

TypeError: unsupported operand type(s) for +: 'int' and 'NoneType'

This occurred when running the unmodified code from the EXAMPLE_SETUP:

avg_wind_speed = 1.5
avg_wind_dir = 215
qf_arrs.calc_normal_windfield(start_speed = avg_wind_speed, start_dir = avg_wind_dir)

Code worked normally when using a custom windfield. Could potentially be linked to pull request #11