Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
jd-lara committed Feb 29, 2024
1 parent 9ce220a commit 92d27ef
Show file tree
Hide file tree
Showing 14 changed files with 84 additions and 22 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/cross-package-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: CrossPackageTest

on:
push:
branches: [master]
branches: [main]
tags: [v*]
pull_request:

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Documentation
on:
push:
branches:
- master
- main
- 'release-'
tags: '*'
pull_request:
Expand All @@ -12,7 +12,7 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: julia-actions/setup-julia@v1
with:
version: '1.6'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/format-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Format Check
on:
push:
branches:
- 'master'
- 'main'
- 'release-'
tags: '*'
pull_request:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/main-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
os: [ubuntu-latest, windows-latest, macOS-latest]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: julia-actions/setup-julia@latest
with:
version: ${{ matrix.julia-version }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr_testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
os: [ubuntu-latest, windows-latest, macOS-latest]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: julia-actions/setup-julia@latest
with:
version: ${{ matrix.julia-version }}
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# SIIP-Template

[![Master - CI](https://github.com/NREL-Sienna/Sienna-PACKAGE.jl/workflows/Master%20-%20CI/badge.svg)](https://github.com/NREL-Sienna/Sienna-PACKAGE.jl/actions/workflows/main-tests.yml)
[![codecov](https://codecov.io/gh/NREL-Sienna/Sienna-PACKAGE.jl/branch/master/graph/badge.svg)](https://codecov.io/gh/NREL-SIIP/SIIP-PACKAGE.jl)
[![main - CI](https://github.com/NREL-Sienna/Sienna-PACKAGE.jl/workflows/main%20-%20CI/badge.svg)](https://github.com/NREL-Sienna/Sienna-PACKAGE.jl/actions/workflows/main-tests.yml)
[![codecov](https://codecov.io/gh/NREL-Sienna/Sienna-PACKAGE.jl/branch/main/graph/badge.svg)](https://codecov.io/gh/NREL-SIIP/SIIP-PACKAGE.jl)
[![Documentation Build](https://github.com/NREL-Sienna/Sienna-PACKAGE.jl/workflows/Documentation/badge.svg?)](https://nrel-sienna.github.io/Sienna-PACKAGE.jl/stable)
[<img src="https://img.shields.io/badge/slack-@Sienna/SiennaPACKAGE-sienna.svg?logo=slack">](https://join.slack.com/t/nrel-siip/shared_invite/zt-glam9vdu-o8A9TwZTZqqNTKHa7q3BpQ)
[![Sienna-PACKAGE.jl Downloads](https://shields.io/endpoint?url=https://pkgs.genieframework.com/api/v1/badge/SIIP-PACKAGE)](https://pkgs.genieframework.com?packages=Sienna-PACKAGE)
Expand All @@ -16,8 +16,8 @@ This repository contains the template files for a dummy package called SIIP-PACK

## Development

Contributions to the development and enahancement of Sienna-PACKAGE is welcome. Please see [CONTRIBUTING.md](https://github.com/NREL-Sienna/Sienna-PACKAGE.jl/blob/master/CONTRIBUTING.md) for code contribution guidelines.
Contributions to the development and enahancement of Sienna-PACKAGE is welcome. Please see [CONTRIBUTING.md](https://github.com/NREL-Sienna/Sienna-PACKAGE.jl/blob/main/CONTRIBUTING.md) for code contribution guidelines.

## License

SIIP-PACKAGE is released under a BSD [license](https://github.com/NREL/SIIP-PACKAGE/blob/master/LICENSE). Sienna PACKAGE has been developed as part of A PROJECT at the U.S. Department of Energy's National Renewable Energy Laboratory ([NREL](https://www.nrel.gov/))
SIIP-PACKAGE is released under a BSD [license](https://github.com/NREL/SIIP-PACKAGE/blob/main/LICENSE). Sienna PACKAGE has been developed as part of A PROJECT at the U.S. Department of Energy's National Renewable Energy Laboratory ([NREL](https://www.nrel.gov/))
2 changes: 1 addition & 1 deletion docs/make.jl
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ deploydocs(
repo="github.com/NREL-SIIP/SIIP-PACKAGE.git",
target="build",
branch="gh-pages",
devbranch="master",
devbranch="main",
devurl="dev",
push_preview=true,
versions=["stable" => "v^", "v#.#"],
Expand Down
27 changes: 27 additions & 0 deletions src/PowerSystemsInvestmentsPortfolios.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
module PowerSystemsInvestmentsPortfolios

import InfrastructureSystems
import PowerSystems

export Portfolio
export SupplyTechnology
export TransportTechnology
export DemandTechnology

const PSY = PowerSystems
const IS = InfrastructureSystems

include("demand.jl")
include("supply.jl")
include("transport.jl")
include("storage.jl")
include("portfolio.jl")

using DocStringExtensions

@template (FUNCTIONS, METHODS) = """
$(TYPEDSIGNATURES)
$(DOCSTRING)
"""

end
11 changes: 0 additions & 11 deletions src/SIIP-PACKAGE.jl

This file was deleted.

8 changes: 8 additions & 0 deletions src/demand.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
struct DemandTechnology{T <: PSY.Device} <: IS.Component
name::String
power_systems_type::PSY.Device
capital_cost::Float64
ext::Dict{String, Any}
time_series_container::InfrastructureSystems.TimeSeriesContainer
internal::InfrastructureSystemsInternal
end
6 changes: 6 additions & 0 deletions src/portfolio.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
struct Portfolio <: IS.InfrastructureSystemsType
aggregation::Type{<: Union{PSY.ACBus, PSY.AggregationTopology}}
discount_rate::Float64
data::IS.SystemData
time_series_container::InfrastructureSystems.TimeSeriesContainer
end
12 changes: 12 additions & 0 deletions src/storage.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
struct StorageTechnology{T <: PSY.Storage} <: IS.Component
name::String
power_systems_type::PSY.Device
capital_cost::Float64
battery_chemistry::String # Implement Chemistry Type Enums in PowerSystems
prime_mover::PSY.Primer_mover
capital_cost::Float64
operational_cost::PSY.OperationalCost
ext::Dict{String, Any}
time_series_container::InfrastructureSystems.TimeSeriesContainer
internal::InfrastructureSystemsInternal
end
12 changes: 12 additions & 0 deletions src/supply.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
struct SupplyTechnology{T <: PSY.Device} <: IS.Component
name::String
power_systems_type::Type{T}
fuel::PSY.ThermalFuels
prime_mover::PSY.Primer_mover
capacity_factor::Float64
capital_cost::Float64
operational_cost::PSY.OperationalCost
ext::Dict{String, Any}
time_series_container::InfrastructureSystems.TimeSeriesContainer
internal::InfrastructureSystemsInternal
end
8 changes: 8 additions & 0 deletions src/transport.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
struct TransportTechnology{T <: PSY.Device} <: IS.Component
name::String
power_systems_type::Type{T}
capital_cost::Float64
ext::Dict{String, Any}
time_series_container::InfrastructureSystems.TimeSeriesContainer
internal::InfrastructureSystemsInternal
end

0 comments on commit 92d27ef

Please sign in to comment.