Skip to content

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

@jaredthomas68

Description

@jaredthomas68

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions