Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ it releases that version ([RELEASING.md](https://github.com/energy-models/mathsp

## Upcoming version

- feat(language)!: a construct that reads the order of a dimension needs the dimension declared ordered ([#793](https://github.com/energy-models/mathspec/pull/793))
- docs(pypsa): the pypsa reference targets master at 51986084, where the eight rungs that diverged now match ([#844](https://github.com/energy-models/mathspec/pull/844))
- feat(language)!: a call names the columns of a relation as relation[column], and a sum through a relation is a sum over the axes its join opens ([#664](https://github.com/energy-models/mathspec/pull/664))
- docs(pypsa): the linearized unit commitment is a patch over pypsa.yaml, and relaxes a committable link and process too ([#835](https://github.com/energy-models/mathspec/pull/835))
Expand Down
2 changes: 1 addition & 1 deletion docs/about/limits.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ SPDX-License-Identifier: CC-BY-4.0
A spec can only say what the language has words for. This page says which words
can be added, and which cannot. Read it before you ask for a new operator, block
or keyword. For the rules a spec itself has to obey, read
[the ten rules](../reference/language/index.md#the-ten-rules).
[the eleven rules](../reference/language/index.md#the-eleven-rules).

## How a new construct enters

Expand Down
2 changes: 1 addition & 1 deletion docs/examples/commitment.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ description: >-
inequality is written once.

dimensions:
snapshot: { dtype: int, description: dispatch periods }
snapshot: { dtype: int, description: dispatch periods, ordered: true }
generator: { description: generating units }

parameters:
Expand Down
18 changes: 9 additions & 9 deletions docs/examples/operators.md
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ description: >-
it would have fed is not built.

dimensions:
snapshot: { dtype: int }
snapshot: { dtype: int, ordered: true }

variables:
p:
Expand All @@ -314,7 +314,7 @@ description: >-
reads the last and nothing is vacated.

dimensions:
snapshot: { dtype: int }
snapshot: { dtype: int, ordered: true }

variables:
p:
Expand All @@ -341,7 +341,7 @@ description: >-
number instead of being absent, so the row survives.

dimensions:
snapshot: { dtype: int }
snapshot: { dtype: int, ordered: true }

variables:
p:
Expand Down Expand Up @@ -370,7 +370,7 @@ description: >-

dimensions:
technology: { dtype: str }
month: { dtype: int }
month: { dtype: int, ordered: true }

parameters:
lead: { dims: [technology], dtype: int }
Expand Down Expand Up @@ -401,7 +401,7 @@ description: >-
snapshot reads that season's last and no level crosses the boundary.

dimensions:
snapshot: { dtype: int }
snapshot: { dtype: int, ordered: true }
season: { dtype: str }

relations:
Expand Down Expand Up @@ -433,7 +433,7 @@ description: >-

dimensions:
unit: { dtype: str }
hour: { dtype: int }
hour: { dtype: int, ordered: true }

parameters:
min_up: { dims: [unit], dtype: int }
Expand Down Expand Up @@ -467,7 +467,7 @@ description: >-

dimensions:
unit: { dtype: str }
hour: { dtype: int }
hour: { dtype: int, ordered: true }

parameters:
min_up: { dims: [unit], dtype: int }
Expand Down Expand Up @@ -501,7 +501,7 @@ description: >-

dimensions:
unit: { dtype: str }
hour: { dtype: int }
hour: { dtype: int, ordered: true }

parameters:
min_up: { dims: [unit], dtype: int }
Expand Down Expand Up @@ -536,7 +536,7 @@ description: >-

dimensions:
unit: { dtype: str }
hour: { dtype: int }
hour: { dtype: int, ordered: true }
day: { dtype: str }

relations:
Expand Down
1 change: 1 addition & 0 deletions docs/examples/pypsa/carrier.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ dimensions:
period:
description: investment periods — PyPSA's `investment_periods`
dtype: int
ordered: true
carrier:
description: energy carriers, what a growth limit is set per

Expand Down
2 changes: 2 additions & 0 deletions docs/examples/pypsa/generator.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ dimensions:
snapshot:
description: dispatch periods
dtype: datetime
ordered: true
bus:
description: network nodes
generator:
Expand All @@ -24,6 +25,7 @@ dimensions:
period:
description: investment periods — PyPSA's `investment_periods`
dtype: int
ordered: true
carrier:
description: energy carriers, what a growth limit is set per

Expand Down
2 changes: 2 additions & 0 deletions docs/examples/pypsa/generator_commitment.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,13 @@ dimensions:
snapshot:
description: dispatch periods
dtype: datetime
ordered: true
generator:
description: generating units, each on one bus
period:
description: investment periods — PyPSA's `investment_periods`
dtype: int
ordered: true

relations:
snapshot_period:
Expand Down
1 change: 1 addition & 0 deletions docs/examples/pypsa/generator_maintenance.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ dimensions:
snapshot:
description: dispatch periods
dtype: datetime
ordered: true
generator:
description: generating units, each on one bus

Expand Down
2 changes: 2 additions & 0 deletions docs/examples/pypsa/generator_ramping.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,13 @@ dimensions:
snapshot:
description: dispatch periods
dtype: datetime
ordered: true
generator:
description: generating units, each on one bus
period:
description: investment periods — PyPSA's `investment_periods`
dtype: int
ordered: true

relations:
snapshot_period:
Expand Down
2 changes: 2 additions & 0 deletions docs/examples/pypsa/line.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ dimensions:
snapshot:
description: dispatch periods
dtype: datetime
ordered: true
bus:
description: network nodes
line:
Expand All @@ -36,6 +37,7 @@ dimensions:
period:
description: investment periods — PyPSA's `investment_periods`
dtype: int
ordered: true
carrier:
description: energy carriers, what a growth limit is set per

Expand Down
2 changes: 2 additions & 0 deletions docs/examples/pypsa/link.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ dimensions:
snapshot:
description: dispatch periods
dtype: datetime
ordered: true
bus:
description: network nodes
link:
Expand All @@ -29,6 +30,7 @@ dimensions:
period:
description: investment periods — PyPSA's `investment_periods`
dtype: int
ordered: true
carrier:
description: energy carriers, what a growth limit is set per

Expand Down
2 changes: 2 additions & 0 deletions docs/examples/pypsa/link_commitment.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,13 @@ dimensions:
snapshot:
description: dispatch periods
dtype: datetime
ordered: true
link:
description: controllable connections, each from one bus to the buses it delivers to
period:
description: investment periods — PyPSA's `investment_periods`
dtype: int
ordered: true

relations:
snapshot_period:
Expand Down
1 change: 1 addition & 0 deletions docs/examples/pypsa/link_maintenance.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ dimensions:
snapshot:
description: dispatch periods
dtype: datetime
ordered: true
link:
description: controllable connections, each from one bus to the buses it delivers to

Expand Down
2 changes: 2 additions & 0 deletions docs/examples/pypsa/link_ramping.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,13 @@ dimensions:
snapshot:
description: dispatch periods
dtype: datetime
ordered: true
link:
description: controllable connections, each from one bus to the buses it delivers to
period:
description: investment periods — PyPSA's `investment_periods`
dtype: int
ordered: true

relations:
snapshot_period:
Expand Down
1 change: 1 addition & 0 deletions docs/examples/pypsa/load.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ dimensions:
snapshot:
description: dispatch periods
dtype: datetime
ordered: true
bus:
description: network nodes
load:
Expand Down
1 change: 1 addition & 0 deletions docs/examples/pypsa/network.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ dimensions:
snapshot:
description: dispatch periods
dtype: datetime
ordered: true
bus:
description: network nodes

Expand Down
1 change: 1 addition & 0 deletions docs/examples/pypsa/power_flow.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ dimensions:
snapshot:
description: dispatch periods
dtype: datetime
ordered: true
cycle:
description: >-
independent cycles of the passive network graph — the cycle basis, data
Expand Down
2 changes: 2 additions & 0 deletions docs/examples/pypsa/process.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ dimensions:
snapshot:
description: dispatch periods
dtype: datetime
ordered: true
bus:
description: network nodes
process:
Expand All @@ -29,6 +30,7 @@ dimensions:
period:
description: investment periods — PyPSA's `investment_periods`
dtype: int
ordered: true
carrier:
description: energy carriers, what a growth limit is set per

Expand Down
2 changes: 2 additions & 0 deletions docs/examples/pypsa/process_commitment.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,13 @@ dimensions:
snapshot:
description: dispatch periods
dtype: datetime
ordered: true
process:
description: generalized multi-port converters, each with an internal power that every port draws or delivers at its own rate
period:
description: investment periods — PyPSA's `investment_periods`
dtype: int
ordered: true

relations:
snapshot_period:
Expand Down
1 change: 1 addition & 0 deletions docs/examples/pypsa/process_maintenance.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ dimensions:
snapshot:
description: dispatch periods
dtype: datetime
ordered: true
process:
description: generalized multi-port converters, each with an internal power that every port draws or delivers at its own rate

Expand Down
2 changes: 2 additions & 0 deletions docs/examples/pypsa/process_ramping.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,13 @@ dimensions:
snapshot:
description: dispatch periods
dtype: datetime
ordered: true
process:
description: generalized multi-port converters, each with an internal power that every port draws or delivers at its own rate
period:
description: investment periods — PyPSA's `investment_periods`
dtype: int
ordered: true

relations:
snapshot_period:
Expand Down
2 changes: 2 additions & 0 deletions docs/examples/pypsa/security.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ dimensions:
snapshot:
description: dispatch periods
dtype: datetime
ordered: true
line:
description: passive branches, each between two buses, their flow set by impedance
transformer:
Expand All @@ -27,6 +28,7 @@ dimensions:
period:
description: investment periods — PyPSA's `investment_periods`
dtype: int
ordered: true

relations:
snapshot_period:
Expand Down
2 changes: 2 additions & 0 deletions docs/examples/pypsa/settings.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,13 @@ dimensions:
snapshot:
description: dispatch periods
dtype: datetime
ordered: true
global_constraint:
description: PyPSA's `GlobalConstraint` rows, one label per declared limit
period:
description: investment periods — PyPSA's `investment_periods`
dtype: int
ordered: true
carrier:
description: energy carriers, what a growth limit is set per

Expand Down
2 changes: 2 additions & 0 deletions docs/examples/pypsa/storage_unit.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ dimensions:
snapshot:
description: dispatch periods
dtype: datetime
ordered: true
bus:
description: network nodes
storage_unit:
Expand All @@ -24,6 +25,7 @@ dimensions:
period:
description: investment periods — PyPSA's `investment_periods`
dtype: int
ordered: true
carrier:
description: energy carriers, what a growth limit is set per

Expand Down
2 changes: 2 additions & 0 deletions docs/examples/pypsa/store.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ dimensions:
snapshot:
description: dispatch periods
dtype: datetime
ordered: true
bus:
description: network nodes
store:
Expand All @@ -24,6 +25,7 @@ dimensions:
period:
description: investment periods — PyPSA's `investment_periods`
dtype: int
ordered: true
carrier:
description: energy carriers, what a growth limit is set per

Expand Down
2 changes: 2 additions & 0 deletions docs/examples/pypsa/transformer.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ dimensions:
snapshot:
description: dispatch periods
dtype: datetime
ordered: true
bus:
description: network nodes
transformer:
Expand All @@ -34,6 +35,7 @@ dimensions:
period:
description: investment periods — PyPSA's `investment_periods`
dtype: int
ordered: true

relations:
snapshot_period:
Expand Down
Loading
Loading