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
When I run with zero-valued coordinates I get nan values from the CustomArraySystemDesign. This has the effect of leaving the turbines, cables and/or substation(s) out of the plots of the system and also failing in simulation. I have attached the cable layout csv that I was using when I git this error and the resulting layout plot. @RHammond2 helped me figure out what was going on, but the issue is still there. The workaround is of course just using non-zero coordinates.
Error Message
File "/home/anaconda3/envs/env/lib/python3.10/site-packages/marmot/agent.py", line 124, in task
delay = self.env.find_operational_window(ceil(duration), constraints)
File "/home/anaconda3/envs/env/lib/python3.10/site-packages/marmot/environment.py", line 162, in find_operational_window
if not self.state.size > 0:
File "/home/anaconda3/envs/env/lib/python3.10/site-packages/marmot/environment.py", line 111, in state
return self._state[ceil(self.now) :]
ValueError: cannot convert float NaN to integer
Description
When I run with zero-valued coordinates I get nan values from the
CustomArraySystemDesign
. This has the effect of leaving the turbines, cables and/or substation(s) out of the plots of the system and also failing in simulation. I have attached the cable layout csv that I was using when I git this error and the resulting layout plot. @RHammond2 helped me figure out what was going on, but the issue is still there. The workaround is of course just using non-zero coordinates.Error Message
File "/home/anaconda3/envs/env/lib/python3.10/site-packages/marmot/agent.py", line 124, in task
delay = self.env.find_operational_window(ceil(duration), constraints)
File "/home/anaconda3/envs/env/lib/python3.10/site-packages/marmot/environment.py", line 162, in find_operational_window
if not self.state.size > 0:
File "/home/anaconda3/envs/env/lib/python3.10/site-packages/marmot/environment.py", line 111, in state
return self._state[ceil(self.now) :]
ValueError: cannot convert float NaN to integer
Attachments
cable_layout.csv
The text was updated successfully, but these errors were encountered: