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

sort order of components in simulator #207

Open
k-rieck opened this issue Aug 16, 2023 · 0 comments
Open

sort order of components in simulator #207

k-rieck opened this issue Aug 16, 2023 · 0 comments

Comments

@k-rieck
Copy link
Collaborator

k-rieck commented Aug 16, 2023

before the calculation sort order of components to make sure that there are no useless calculations:
put componenents with no inputs first, then mixed inputs and at last components with no outputs
components = […]
no_inputs = []
mixed = []
no_outputs = []

NICHT! .sort()

for c in components:
if c.inputs_count == 0 && c.outputs_count > 0:
no_inputs.append©
elif c.inputs_count > 0 && c.outputs_count == 0:
no_outputs.append©
else
mixed.append©

alles wieder zusammen und weiterrechen

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

No branches or pull requests

1 participant