Skip to content

Improve automatic generation of datapackage.json file#191

Draft
Bachibouzouk wants to merge 13 commits intodevfrom
fix/datapackage
Draft

Improve automatic generation of datapackage.json file#191
Bachibouzouk wants to merge 13 commits intodevfrom
fix/datapackage

Conversation

@Bachibouzouk
Copy link
Collaborator

@Bachibouzouk Bachibouzouk commented Dec 12, 2025

Description

This is an attempt to be able to build and model of an energy system and run it with the https://github.com/oemof/oemof-solph/releases/tag/v0.6.1 release of oemof

Our usecase is based on oemof/oemof-eesyplan#5

Fixes # (issue)

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)

Checklist:

Please tick or delete options that are not relevant.

  • New and adjusted code is formatted using the pre-commit hooks
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • If new packages are needed, I added them the setup.py
  • I have added new features/fixes to the CHANGELOG
  • I have added my name to AUTHORS

Bachibouzouk and others added 11 commits December 12, 2025 12:13
Before only ForeignKeys to the resource "bus" were deemed valid, which
was arbitraty as the fk one wanted to rule out where explicitely the fk
to any resource within the "sequences" folder
Otherwise the argument "name" is renamed into "label", which we want to
avoid in the general case
Now the automatic inferrence of the foreign keys makes this code
obsolete. "bus.csv" is a special resource which must be there. All
fields from all resources which are string will be compared to the
column "name" of the bus resource and if there is a match, a foreign key
will be established. For profiles it it the header of all the resources
saved under "sequences" folder which will be searched through
Before only the resource "bus" was search for potential foreign keys
target, now one can provide a list of resources which are potential
foreign keys target. By default "bus" is always present.
This was the case of project.csv which was neither a part of elements
nor of sequences
Now that Node are fractal, there is no need to add the subnodes to the
energysystem, they are added within Network already
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.

2 participants

Comments