From acd10237c1c6bd045048d8709a4ed2270f77bee5 Mon Sep 17 00:00:00 2001 From: Nick Harder Date: Fri, 13 Dec 2024 11:24:09 +0100 Subject: [PATCH] fix ruff --- assume/units/exchanges.py | 2 +- examples/examples.py | 6 ++-- examples/inputs/example_01a/config.yaml | 2 +- .../example_01a/exchanges_df.csv.license | 3 ++ .../example_03/exchanges_df.csv.license | 3 ++ .../inputs/example_03/exchanges_units.csv | 34 +++++++++---------- 6 files changed, 28 insertions(+), 22 deletions(-) create mode 100644 examples/inputs/example_01a/exchanges_df.csv.license create mode 100644 examples/inputs/example_03/exchanges_df.csv.license diff --git a/assume/units/exchanges.py b/assume/units/exchanges.py index 7f1a3226c..51e1a0997 100644 --- a/assume/units/exchanges.py +++ b/assume/units/exchanges.py @@ -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. diff --git a/examples/examples.py b/examples/examples.py index c9b5f21a3..76fc71797 100644 --- a/examples/examples.py +++ b/examples/examples.py @@ -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", diff --git a/examples/inputs/example_01a/config.yaml b/examples/inputs/example_01a/config.yaml index 78008f027..6da36cb3d 100644 --- a/examples/inputs/example_01a/config.yaml +++ b/examples/inputs/example_01a/config.yaml @@ -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 diff --git a/examples/inputs/example_01a/exchanges_df.csv.license b/examples/inputs/example_01a/exchanges_df.csv.license new file mode 100644 index 000000000..a6ae06366 --- /dev/null +++ b/examples/inputs/example_01a/exchanges_df.csv.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: ASSUME Developers + +SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/examples/inputs/example_03/exchanges_df.csv.license b/examples/inputs/example_03/exchanges_df.csv.license new file mode 100644 index 000000000..a6ae06366 --- /dev/null +++ b/examples/inputs/example_03/exchanges_df.csv.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: ASSUME Developers + +SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/examples/inputs/example_03/exchanges_units.csv b/examples/inputs/example_03/exchanges_units.csv index d17e5e8f5..61e11747d 100644 --- a/examples/inputs/example_03/exchanges_units.csv +++ b/examples/inputs/example_03/exchanges_units.csv @@ -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