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

When adding new components, foreign keys have to be updated as well #18

Open
jnnr opened this issue Jun 9, 2021 · 1 comment
Open
Milestone

Comments

@jnnr
Copy link
Collaborator

jnnr commented Jun 9, 2021

When extending the components in oemoflex, one must not forget to add them to the foreign keys as well.

Problem: When passing component_attrs_update to the method EnergyDatapackage.setup_default(), one would need to update the foreign keys as well, which is not done atm. One solution would be to generate the list of foreign keys automatically from the component definitions.

@jnnr jnnr self-assigned this Sep 21, 2021
@jnnr jnnr added this to the Someday milestone Sep 13, 2022
@jnnr jnnr modified the milestones: Someday, v0.0.1 Oct 12, 2022
@jnnr
Copy link
Collaborator Author

jnnr commented Nov 15, 2022

To be more precise: component_attrs.yml contains info on foreign keys, which setup_default uses to generate foreign key references for all the regions or links. But there is a separate foreign_keys.yml which contains the same information. It would be better to use a single source of truth for this information.

@jnnr jnnr modified the milestones: v0.0.1, v0.0.2 Nov 15, 2022
@jnnr jnnr removed their assignment Feb 16, 2023
@MaGering MaGering modified the milestones: v0.0.2, v0.0.3 Aug 31, 2023
@MaGering MaGering modified the milestones: v0.0.3, v0.0.4 Nov 21, 2023
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

2 participants