Skip to content

Commit

Permalink
Added conditional argument to remove TimeProfile checks (#19)
Browse files Browse the repository at this point in the history
* Added conditional argument to remove TimeProfile checks

* Added checks for both modeltype and case

* Added potential checks when indexing over
- representative periods
- operational scenarios

* Moved check on fixed OPEX to separate function

* Changed wording in docstrings
  • Loading branch information
JulStraus authored Mar 21, 2024
1 parent 8df6833 commit 7328d8e
Show file tree
Hide file tree
Showing 7 changed files with 611 additions and 83 deletions.
8 changes: 8 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Release notes

## Version 0.6.7 (2024-03-21)

* Allow for deactivation of timeprofile checks while printing a warning in this case.
* Fixed a bug for a too short `StrategicProfile` in the checks.
* Added checks for the case dictionary.
* Extended checks for the modeltype
* Added functions that can be used to check whether a `TimeProfile` can be indexed over `StrategicPeriod`s, `RepresentativePeriod`s, or `OperationalScenario`s.

## Version 0.6.6 (2024-03-04)

### Examples
Expand Down
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "EnergyModelsBase"
uuid = "5d7e687e-f956-46f3-9045-6f5a5fd49f50"
authors = ["Lars Hellemo <[email protected]>, Julian Straus <[email protected]>"]
version = "0.6.6"
version = "0.6.7"

[deps]
JuMP = "4076af6c-e467-56ae-b986-b466b2749572"
Expand Down
Loading

2 comments on commit 7328d8e

@JulStraus
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/103336

Tip: Release Notes

Did you know you can add release notes too? Just add markdown formatted text underneath the comment after the text
"Release notes:" and it will be added to the registry PR, and if TagBot is installed it will also be added to the
release that TagBot creates. i.e.

@JuliaRegistrator register

Release notes:

## Breaking changes

- blah

To add them here just re-invoke and the PR will be updated.

Tagging

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.6.7 -m "<description of version>" 7328d8e34f7a442b0f35e699ce37ee67b2211126
git push origin v0.6.7

Please sign in to comment.