-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
27 changed files
with
483 additions
and
388 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
[bumpversion] | ||
current_version = 0.5.2 | ||
current_version = 1.0.0 | ||
commit = true | ||
tag = true | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,57 @@ | ||
# Configuration classes | ||
(configuration)= | ||
# Configuration | ||
|
||
(configuration-models)= | ||
## Configuration models | ||
|
||
```{eval-rst} | ||
.. automodule:: r2x.config | ||
.. autopydantic_settings:: r2x.config_models.BaseModelConfig | ||
:settings-show-json: False | ||
:settings-show-config-summary: False | ||
:settings-show-validator-members: False | ||
:settings-show-validator-summary: False | ||
:field-list-validators: False | ||
``` | ||
|
||
```{eval-rst} | ||
.. autopydantic_settings:: r2x.config_models.InfrasysConfig | ||
:settings-show-json: False | ||
:settings-show-config-summary: False | ||
:settings-show-validator-members: False | ||
:settings-show-validator-summary: False | ||
:field-list-validators: False | ||
``` | ||
|
||
```{eval-rst} | ||
.. autopydantic_settings:: r2x.config_models.ReEDSConfig | ||
:settings-show-json: False | ||
:settings-show-config-summary: False | ||
:settings-show-validator-members: False | ||
:settings-show-validator-summary: False | ||
:field-list-validators: False | ||
``` | ||
|
||
```{eval-rst} | ||
.. autopydantic_settings:: r2x.config_models.PlexosConfig | ||
:settings-show-json: False | ||
:settings-show-config-summary: False | ||
:settings-show-validator-members: False | ||
:settings-show-validator-summary: False | ||
:field-list-validators: False | ||
``` | ||
|
||
```{eval-rst} | ||
.. autopydantic_settings:: r2x.config_models.SiennaConfig | ||
:settings-show-json: False | ||
:settings-show-config-summary: False | ||
:settings-show-validator-members: False | ||
:settings-show-validator-summary: False | ||
:field-list-validators: False | ||
``` | ||
|
||
(scenario-models)= | ||
## Scenario models | ||
```{eval-rst} | ||
.. automodule:: r2x.config_scenario | ||
:members: | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,114 +1,97 @@ | ||
# Data Model | ||
|
||
# Component Models | ||
|
||
## Topology components | ||
|
||
```{eval-rst} | ||
.. autopydantic_model:: r2x.model.Area | ||
.. autopydantic_model:: r2x.models.Area | ||
:inherited-members: Component | ||
.. autopydantic_model:: r2x.model.LoadZone | ||
.. autopydantic_model:: r2x.models.LoadZone | ||
.. autopydantic_model:: r2x.model.ACBus | ||
.. autopydantic_model:: r2x.models.ACBus | ||
:inherited-members: Bus | ||
.. autopydantic_model:: r2x.model.DCBus | ||
.. autopydantic_model:: r2x.models.DCBus | ||
:inherited-members: Bus | ||
.. autopydantic_model:: r2x.model.DCBranch | ||
.. autopydantic_model:: r2x.models.DCBranch | ||
:inherited-members: Branch | ||
.. autopydantic_model:: r2x.model.ACBranch | ||
.. autopydantic_model:: r2x.models.ACBranch | ||
:inherited-members: Branch | ||
.. autopydantic_model:: r2x.model.MonitoredLine | ||
.. autopydantic_model:: r2x.models.MonitoredLine | ||
:inherited-members: ACBranch | ||
.. autopydantic_model:: r2x.model.TModelHVDCLine | ||
.. autopydantic_model:: r2x.models.TModelHVDCLine | ||
:inherited-members: DCBranch | ||
.. autopydantic_model:: r2x.model.Transformer2W | ||
.. autopydantic_model:: r2x.models.Transformer2W | ||
:inherited-members: ACBranch | ||
.. autopydantic_model:: r2x.model.TransmissionInterface | ||
``` | ||
|
||
## Load components | ||
|
||
```{eval-rst} | ||
.. autopydantic_model:: r2x.model.PowerLoad | ||
.. autopydantic_model:: r2x.model.FixedLoad | ||
.. autopydantic_model:: r2x.models.PowerLoad | ||
.. autopydantic_model:: r2x.model.InterruptiblePowerLoad | ||
.. autopydantic_model:: r2x.models.InterruptiblePowerLoad | ||
``` | ||
|
||
|
||
## Generator models | ||
|
||
```{eval-rst} | ||
.. autopydantic_model:: r2x.model.Generator | ||
.. autopydantic_model:: r2x.model.RenewableGen | ||
:inherited-members: Generator | ||
.. autopydantic_model:: r2x.model.RenewableDispatch | ||
.. autopydantic_model:: r2x.models.Generator | ||
:inherited-members: RenewableGen | ||
.. autopydantic_model:: r2x.model.RenewableFix | ||
.. autopydantic_model:: r2x.models.RenewableDispatch | ||
:inherited-members: RenewableGen | ||
.. autopydantic_model:: r2x.model.ThermalGen | ||
:inherited-members: Generator | ||
.. autopydantic_model:: r2x.model.ThermalStandard | ||
:inherited-members: ThermalGen | ||
.. autopydantic_model:: r2x.models.RenewableNonDispatch | ||
:inherited-members: RenewableGen | ||
.. autopydantic_model:: r2x.model.ThermalMultiStart | ||
.. autopydantic_model:: r2x.models.ThermalStandard | ||
:inherited-members: ThermalGen | ||
.. autopydantic_model:: r2x.model.HydroGen | ||
:inherited-members: Generator | ||
.. autopydantic_model:: r2x.model.HydroFix | ||
:inherited-members: HydroGen | ||
.. autopydantic_model:: r2x.model.HydroDispatch | ||
.. autopydantic_model:: r2x.models.HydroDispatch | ||
:inherited-members: HydroGen | ||
.. autopydantic_model:: r2x.model.HydroEnergyReservoir | ||
.. autopydantic_model:: r2x.models.HydroEnergyReservoir | ||
:inherited-members: HydroGen | ||
``` | ||
|
||
|
||
## Storage models | ||
|
||
```{eval-rst} | ||
.. autopydantic_model:: r2x.model.Storage | ||
.. autopydantic_model:: r2x.models.Storage | ||
:inherited-members: Generator | ||
.. autopydantic_model:: r2x.model.GenericBattery | ||
.. autopydantic_model:: r2x.models.GenericBattery | ||
:inherited-members: Storage | ||
.. autopydantic_model:: r2x.model.HydroPumpedStorage | ||
.. autopydantic_model:: r2x.models.HydroPumpedStorage | ||
:inherited-members: HydroGen | ||
``` | ||
|
||
## Hybrid representation | ||
|
||
```{eval-rst} | ||
.. autopydantic_model:: r2x.model.HybridSystem | ||
.. autopydantic_model:: r2x.models.HybridSystem | ||
``` | ||
|
||
## Services | ||
|
||
```{eval-rst} | ||
.. autopydantic_model:: r2x.model.Service | ||
.. autopydantic_model:: r2x.models.Emission | ||
:inherited-members: Service | ||
.. autopydantic_model:: r2x.model.Emission | ||
.. autopydantic_model:: r2x.models.Reserve | ||
:inherited-members: Service | ||
.. autopydantic_model:: r2x.model.Reserve | ||
.. autopydantic_model:: r2x.models.TransmissionInterface | ||
:inherited-members: Service | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
# Plexos API | ||
# `plexosdb` | ||
|
||
```{eval-rst} | ||
.. automodule:: plexosdb.plexos_sqlite | ||
.. automodule:: plexosdb.sqlite | ||
:members: | ||
:inherited-members: | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# System | ||
# `infrasys` | ||
|
||
```{eval-rst} | ||
.. automodule:: r2x.api | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
(howto)= | ||
# How-To's | ||
|
||
### ... upgrade an old version of ReEDS | ||
```console | ||
r2x -vv run <translation_args> --upgrade | ||
``` | ||
|
||
### ... enable additional verbosity | ||
```console | ||
r2x -vv run --input-model <input_model> --output-model <output_model> | ||
``` | ||
|
||
### ... convert ReEDS outputs into PLEXOS inputs. | ||
|
||
Using config file | ||
```console | ||
r2x -vv run --config user_dict.yaml | ||
``` | ||
|
||
Using the CLI | ||
```console | ||
r2x -vv run --input-model reeds-US --output-model plexos --solve-year=2035 --weather-year=2012 | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.