Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using zero valued coordinates for CustomArraySystemDesign in distance mode results in nan values and failed simulations. #134

Open
jaredthomas68 opened this issue Mar 10, 2023 · 0 comments

Comments

@jaredthomas68
Copy link

jaredthomas68 commented Mar 10, 2023

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
MicrosoftTeams-image (7)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant