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

create_electricity_network.py speed, snkit parallelism #148

Open
thomas-fred opened this issue Aug 16, 2023 · 0 comments
Open

create_electricity_network.py speed, snkit parallelism #148

thomas-fred opened this issue Aug 16, 2023 · 0 comments

Comments

@thomas-fred
Copy link
Contributor

snkit's link_nodes_to_nearest_edge is called several times and takes a while for large networks. The function doing most of the work is split_edges_at_nodes. SNKIT_PARALLEL can be set to 1 or TRUE to enable parallelism in this function, but it is not constrained (uses os.cpu_count()), so open-gira's snakemake workflow.cores limit is not respected.

  • Change snkit parallelism to specify an integer number of processes via SNKIT_PARALLEL or SNKIT_PROCESSES?
  • Use rule.threads = to specify a maximum number for any given rule invocation. Then hopefully jobs could be submitted that respect the workflow cores limit (test this...).
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