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

Snakefile: fix memory function for clusters == 'all' #319

Merged
merged 2 commits into from Mar 2, 2022

Conversation

FabianHofmann
Copy link
Contributor

@FabianHofmann FabianHofmann commented Mar 2, 2022

Changes proposed in this Pull Request

When setting the cluster wildcard to 'all' the memory function raises an error as no number is passed to int(). The fix hard-codes the memory limit to the resources needed for a full pypsa-eur network with all nodes.

Checklist

  • I tested my contribution locally and it seems to work fine.

@FabianHofmann FabianHofmann requested a review from fneum March 2, 2022 13:35
Copy link
Member

@fneum fneum left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That is a massive memory requirement of 738 GB?

@FabianHofmann
Copy link
Contributor Author

Indeed I was a bit generous there. But this is just an upper limit, not a minimum requirement. It assumes the "worst" case. Otherwise the optimization of the full network would not be supported.

@fneum
Copy link
Member

fneum commented Mar 2, 2022

Yes, that's fair enough. Wasn't arguing against it.

@FabianHofmann FabianHofmann merged commit 7365bab into master Mar 2, 2022
@FabianHofmann FabianHofmann deleted the memory-fix branch March 2, 2022 14:20
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

Successfully merging this pull request may close these issues.

None yet

2 participants