Skip to content

Bug report: cannot include properly formatted yaml file inputs for demand profiles #644

@jaredthomas68

Description

@jaredthomas68

Cannot include properly formatted yaml file inputs for demand profiles

The current formatting of the tech_config.yaml file requires that demand profiles included from other yamls have no headers, which is not proper yaml file formatting. To work around this, demand profiles used in this way have been excluded individually from the yamlfix pre-commit hook. While this works, it would be better to have a cleaner and more scalable solution.

Current include in the tech config:

Image

Included file format:

Image

Current pre-commit hook exclude for yamlfix:

Image

Solution

I would like to propose that we allow for a second layer in the demand_profile to accommodate properly formatted yaml inputs. The tech_config would stay essentially the same. The demand profile files included in tech config could then include other helpful meta data and may look like the following:

For a time series profile:

tech_config
Image
included file
Image

For a constant profile:

tech_config
Image

How to reproduce

Relevant output

System Information

  • OS: <macOS 12.4>
  • Python version: <3.11.4>
  • H2Integrate version: <0.1.1>
    • <Installed from source using an editable installation with developer tools: pip install -e .[develop]>
    • Commit hash:

Relevant library versions

Package Version
hopp <3.1.1>
numpy <1.26.4>
Pyomo <6.8.0>
scipy <1.14.1>

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions