Skip to content

Commit

Permalink
fix ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
nick-harder committed Dec 13, 2024
1 parent b95595e commit acd1023
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 22 deletions.
2 changes: 1 addition & 1 deletion assume/units/exchanges.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

class Exchanges(SupportsMinMax):
"""
An exchanges unit.
An exchanges unit represents a unit that can import or export energy.
Attributes:
id (str): The unique identifier of the unit.
Expand Down
6 changes: 3 additions & 3 deletions examples/examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
# small examples for easier understanding of different features and configurations
"small": {"scenario": "example_01a", "study_case": "base"},
"small_with_exchanges": {
"scenario": "example_01a",
"study_case": "base_with_exchanges"
},
"scenario": "example_01a",
"study_case": "base_with_exchanges",
},
"small_dam": {"scenario": "example_01a", "study_case": "dam"},
"small_with_opt_clearing": {
"scenario": "example_01a",
Expand Down
2 changes: 1 addition & 1 deletion examples/inputs/example_01a/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ base_with_exchanges:
minimum_bid_price: -500
price_unit: EUR/MWh
market_mechanism: pay_as_clear

tiny:
start_date: 2019-01-01 00:00
end_date: 2019-01-02 00:00
Expand Down
3 changes: 3 additions & 0 deletions examples/inputs/example_01a/exchanges_df.csv.license
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SPDX-FileCopyrightText: ASSUME Developers

SPDX-License-Identifier: AGPL-3.0-or-later
3 changes: 3 additions & 0 deletions examples/inputs/example_03/exchanges_df.csv.license
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SPDX-FileCopyrightText: ASSUME Developers

SPDX-License-Identifier: AGPL-3.0-or-later
34 changes: 17 additions & 17 deletions examples/inputs/example_03/exchanges_units.csv
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
name,technology,direction,bidding_EOM,max_power,min_power,price,unit_operator
export_DE_NL,n/a,export,naive_eom,1000000,0,2999,eom_de
import_NL_DE,n/a,import,naive_eom,1000000,0,0,eom_de
export_DE_CH,n/a,export,naive_eom,1000000,0,2999,eom_de
import_CH_DE,n/a,import,naive_eom,1000000,0,0,eom_de
export_DE_DK,n/a,export,naive_eom,1000000,0,2999,eom_de
import_DK_DE,n/a,import,naive_eom,1000000,0,0,eom_de
export_DE_CZ,n/a,export,naive_eom,1000000,0,2999,eom_de
import_CZ_DE,n/a,import,naive_eom,1000000,0,0,eom_de
export_DE_LU,n/a,export,naive_eom,1000000,0,2999,eom_de
import_LU_DE,n/a,import,naive_eom,1000000,0,0,eom_de
export_DE_SE,n/a,export,naive_eom,1000000,0,2999,eom_de
import_SE_DE,n/a,import,naive_eom,1000000,0,0,eom_de
export_DE_AT,n/a,export,naive_eom,1000000,0,2999,eom_de
import_AT_DE,n/a,import,naive_eom,1000000,0,0,eom_de
export_DE_FR,n/a,export,naive_eom,1000000,0,2999,eom_de
import_FR_DE,n/a,import,naive_eom,1000000,0,0,eom_de
export_DE_PL,n/a,export,naive_eom,1000000,0,2999,eom_de
export_DE_NL,n/a,export,naive_eom,1000000,0,2999,eom_de
import_NL_DE,n/a,import,naive_eom,1000000,0,0,eom_de
export_DE_CH,n/a,export,naive_eom,1000000,0,2999,eom_de
import_CH_DE,n/a,import,naive_eom,1000000,0,0,eom_de
export_DE_DK,n/a,export,naive_eom,1000000,0,2999,eom_de
import_DK_DE,n/a,import,naive_eom,1000000,0,0,eom_de
export_DE_CZ,n/a,export,naive_eom,1000000,0,2999,eom_de
import_CZ_DE,n/a,import,naive_eom,1000000,0,0,eom_de
export_DE_LU,n/a,export,naive_eom,1000000,0,2999,eom_de
import_LU_DE,n/a,import,naive_eom,1000000,0,0,eom_de
export_DE_SE,n/a,export,naive_eom,1000000,0,2999,eom_de
import_SE_DE,n/a,import,naive_eom,1000000,0,0,eom_de
export_DE_AT,n/a,export,naive_eom,1000000,0,2999,eom_de
import_AT_DE,n/a,import,naive_eom,1000000,0,0,eom_de
export_DE_FR,n/a,export,naive_eom,1000000,0,2999,eom_de
import_FR_DE,n/a,import,naive_eom,1000000,0,0,eom_de
export_DE_PL,n/a,export,naive_eom,1000000,0,2999,eom_de
import_PL_DE,n/a,import,naive_eom,1000000,0,0,eom_de

0 comments on commit acd1023

Please sign in to comment.