Skip to content

Commit

Permalink
improve readability by changing variable names
Browse files Browse the repository at this point in the history
  • Loading branch information
joda9 committed Oct 1, 2024
1 parent f6f280c commit 49c12c4
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions edisgo/tools/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,11 +185,13 @@ def get_database_alias_dictionaries(self) -> tuple[dict[str, str], dict[str, str
platform = "toep.iks.cs.ovgu.de"
conn_str = OEP_CONNECTION.format(platform=platform)
engine = sa.create_engine(conn_str)
schema_name = "model_draft" # Replace with the actual schema name if needed
module_name = f"saio.{schema_name}"
register_schema(schema_name, engine)
dictionary_schema_name = (
"model_draft" # Replace with the actual schema name if needed
)
dictionary_module_name = f"saio.{dictionary_schema_name}"
register_schema(dictionary_schema_name, engine)
dictionary_table_name = "edut_00"
dictionary_table = importlib.import_module(module_name).__getattr__(
dictionary_table = importlib.import_module(dictionary_module_name).__getattr__(
dictionary_table_name
)
with session_scope_egon_data(engine) as session:
Expand Down

0 comments on commit 49c12c4

Please sign in to comment.