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

Allow to use active in data tables #725

Open
jnnr opened this issue Dec 10, 2024 · 2 comments
Open

Allow to use active in data tables #725

jnnr opened this issue Dec 10, 2024 · 2 comments
Labels
enhancement v0.7 (upcoming) version 0.7

Comments

@jnnr
Copy link
Contributor

jnnr commented Dec 10, 2024

What can be improved?

I would like to be able to use active from within data tables. There might be reasons for that to be forbidden because of implementation details. But as a user, I cannot see a reason why active is not allowed in data tables.

As I am working with models at different spatial resolution, being able to provide all data describing the graph compactly would be of great use. If I could use active from within data tables, I could drop the yaml file describing specific links or nodes.

As an example, I currently have to spread data defining each link in two separate places.
links.csv

techs,distance,from,to
ESP_to_FRA,8,ESP,FRA
ESP_to_PRT,3,ESP,PRT

and links.yaml

techs:
  ESP_to_FRA:
    active: True
  ESP_to_PRT:
    active: True

Similar for nodes. Because of this, I need to use Jinja templates to create the yaml, instead of providing all data with spatial granularity in one or a few data tables.

update Limited the issue to active, as template seems to be supported in data tables already, as indicated in the comments.

Version

v0.7.0.dev4

@brynpickering
Copy link
Member

Templates have already been added to data tables in #719

Could you update this issue to just adding active to data tables, as that wasn't on our radar til now!

@jnnr jnnr changed the title Allow to use template and active in data tables Allow to use active in data tables Dec 10, 2024
@jnnr
Copy link
Contributor Author

jnnr commented Dec 10, 2024

Great! I will test this as soon as I can.

@brynpickering brynpickering added the v0.7 (upcoming) version 0.7 label Dec 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement v0.7 (upcoming) version 0.7
Projects
None yet
Development

No branches or pull requests

2 participants