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:
Included file format:
Current pre-commit hook exclude for yamlfix:
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

included file

For a constant profile:
tech_config

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> |
|
|
Cannot include properly formatted yaml file inputs for demand profiles
The current formatting of the
tech_config.yamlfile 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:
Included file format:
Current pre-commit hook exclude for yamlfix:
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


included file
For a constant profile:
tech_config

How to reproduce
Relevant output
System Information
pip install -e .[develop]>Relevant library versions