Skip to content

Commit

Permalink
Added tagbot and increased restrictions on types (#5)
Browse files Browse the repository at this point in the history
* Added TagBot to workflow
* Added restrictions on type generation
  • Loading branch information
JulStraus committed Jan 30, 2024
1 parent 90efe8a commit ad09648
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 5 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/TagBot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: TagBot
on:
issue_comment:
types:
- created
workflow_dispatch:
inputs:
lookback:
default: 3
permissions:
actions: read
checks: read
contents: write
deployments: read
issues: read
discussions: read
packages: read
pages: read
pull-requests: read
repository-projects: read
security-events: read
statuses: read
jobs:
TagBot:
if: github.event_name == 'workflow_dispatch' || github.actor == 'JuliaTagBot'
runs-on: ubuntu-latest
steps:
- uses: JuliaRegistries/TagBot@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
# Edit the following line to reflect the actual name of the GitHub Secret containing your private key
ssh: ${{ secrets.DOCUMENTER_KEY }}
# ssh: ${{ secrets.NAME_OF_MY_SSH_PRIVATE_KEY_SECRET }}
5 changes: 5 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
Release notes
=============

Version 0.5.3 (2024-01-30)
--------------------------
* Updated the restrictions on the fields individual types to be consistent.
* Added option to not include the field `data` for the individual `TransmissionMode`s.

Version 0.5.2 (2024-01-19)
--------------------------
* Updated the documenation to be in line with the updated done in `EnergyModelsBsae`.
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 = "EnergyModelsRenewableProducers"
uuid = "b007c34f-ba52-4995-ba37-fffe79fbde35"
authors = ["Sigmund Eggen Holm <[email protected]>, Julian Straus <[email protected]>"]
version = "0.5.2"
version = "0.5.3"

[deps]
EnergyModelsBase = "5d7e687e-f956-46f3-9045-6f5a5fd49f50"
Expand Down
10 changes: 6 additions & 4 deletions src/datastructures.jl
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ of the installed capacity at that time.\n
- **`opex_var::TimeProfile`** is the variational operational costs per energy unit produced.\n
- **`opex_fixed::TimeProfile`** is the fixed operational costs.\n
- **`output::Dict{Resource, Real}`** are the generated `Resource`s, normally Power.\n
- **`data::Vector{<:Data}`** is the additional data (e.g. for investments).
- **`data::Vector{<:Data}`** is the additional data (e.g. for investments). The field \
`data` is conditional through usage of a constructor.
"""
struct NonDisRES <: EMB.Source
Expand Down Expand Up @@ -49,8 +50,8 @@ abstract type HydroStorage <: EMB.Storage end
- **`input::Dict{Resource, Real}`** the stored and used resources. The \
values in the Dict is a ratio describing the energy loss when using the pumps.\n
- **`output::Dict{Resource, Real}`** can only contain one entry, the stored resource.\n
- **`data::Vector{<:Data}`** additional data (e.g. for investments) this field is \
optional as a constructor is used.\n
- **`data::Vector{<:Data}`** additional data (e.g. for investments). The field \
`data` is conditional through usage of a constructor.
"""
struct HydroStor <: HydroStorage
id::Any
Expand Down Expand Up @@ -113,7 +114,8 @@ end
- **`input::Dict{Resource, Real}`** the stored and used resources. The \
values in the Dict is a ratio describing the energy loss when using the pumps.\n
- **`output::Dict{Resource, Real}`** can only contain one entry, the stored resource.\n
- **`data::Vector{<:Data}`** additional data (e.g. for investments).\n
- **`data::Vector{<:Data}`** additional data (e.g. for investments). The field \
`data` is conditional through usage of a constructor.\n
"""
struct PumpedHydroStor <: HydroStorage
id::Any
Expand Down

0 comments on commit ad09648

Please sign in to comment.