You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've problems running ding0 examples 'example_single_grid_district.py'
when I run run_ding0 it results: 'TypeError: unsupported operand type(s) for +: 'int' and 'str'
specifically, the problem occurs when:
cum_mv_peak_generation = sum([_.capacity for _ in self.grid.generators()])
capacities of generators are string: for example '580', and they cannot be summed together.
can somebody knows if there is an internal error or if I'm doing something wrong?
The text was updated successfully, but these errors were encountered:
This was quite a nasty thing. Numeric data retrieved from the database was casted into a string. Thus, you ended up with this error, because the sum over an array of strings can't be computed.
The fix will close this error. Then, installing the dev version should run again.
I've problems running ding0 examples 'example_single_grid_district.py'
when I run run_ding0 it results: 'TypeError: unsupported operand type(s) for +: 'int' and 'str'
specifically, the problem occurs when:
cum_mv_peak_generation = sum([_.capacity for _ in self.grid.generators()])
capacities of generators are string: for example '580', and they cannot be summed together.
can somebody knows if there is an internal error or if I'm doing something wrong?
The text was updated successfully, but these errors were encountered: