USDA-ARS-NWRC / smrf

SMRF was designed to increase the flexibility of taking measured weather data, or atmospheric models, and distributing the data across a watershed.
Other
12 stars 4 forks source link

test_config doesn't run with nasde_model Marks2017 #17

Closed scotthavens closed 7 years ago

scotthavens commented 7 years ago

In gitlab by @micahjohnson150 on Jul 11, 2017, 10:14

Error: Could not operate {'TRMI1': 1.0, 'VNNI1': 1.0, 'ATAI1': 1, 'BOGI1': 1.0} with block values unsupported operand type(s) for *: 'float' and 'dict'

scotthavens commented 7 years ago

In gitlab by @micahjohnson150 on Jul 11, 2017, 15:06

This was being caused by an scenario where no storms are detected in the run and when we went to go calculate storm days we use the self.storms.iloc[self.storm_id] except that len(self.storms) == 0 so it would error out.

Storm days calc is now rearranged a little to look more like distribution_for_susong

scotthavens commented 7 years ago

In gitlab by @micahjohnson150 on Aug 16, 2017, 15:10

closed