Comments (3)
Your issue looks very specific to snakemake probably their issue tracker is more suited to your question.
The error you are seeing is that format complains it does not know how to to fill in ‘wildcards’, but I think you know that. You could use {{wildcards}} instead.
But, I don’t think it’s possible to create rules in a loop.
It probably makes sense to describe what you are actually trying to achieve.
from pypsa-eur.
Actually, it worked without the wildcards as I have tested the following workflow,
rule all:
input: "A-3"
for i in range(n):
rule:
input: "A-{param}".format(param=i-1)
output: "A-{param}".format(param=i)
script: do something
when A-0 is given, it is able to generate A-1, A-2 until A-3. What I want to do is very much like this in principle. I did realize it is more relevant to snakemake issue, yet I wanted to ask if you have done similar before.
from pypsa-eur.
Well, as I said previously, you can try to replace {wildcards}
by {{wildcards}}
to guard it against the outer format
.
Closing.
from pypsa-eur.
Related Issues (20)
- Existing resistive heating capacities on wrong buses if distribution HOT 2
- Tutorial does not work HOT 6
- `config["electricity"]["estimate_renewable_capacities"]["enable"] == True` incompatible with myopic foresight HOT 4
- CCGT plants are added as OCGT (at least in Spain) HOT 1
- Workflow crashes in simplify_network due to kill signal HOT 1
- Misapplication of `ancient` snakemake keyword HOT 1
- Scenario management: new 'exclude' policy
- Update JRC-IDEES to latest version (May 2024) HOT 1
- ProtectedOutputException in rule retrieve_databundle in file /../../retrieve.smk, line31: HOT 2
- Gas turbines with carbon capture? HOT 1
- Missing Offshore capacity
- determine_availability_matrix_MD_UA takes too long
- Separate generator for existing capacities if grouping_year == baseyear
- Missing parameter length_factor in transmission costs update
- Wrong alignment between country borders and simplified onshore shapes
- Adjust test config to run with extendable carriers
- `mock_snakemake` incompatible with `snakemake=8.14.0`
- Config no longer working
- Refactor main methods for scripts to run without snakemake HOT 1
- Refactor scripts to follow concept of "one level of abstraction per function"?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pypsa-eur.