Skip to content

Commit

Permalink
include engine and session to loaded etrago obj
Browse files Browse the repository at this point in the history
  • Loading branch information
CarlosEpia committed Aug 9, 2023
1 parent 670ff5e commit 4dac3b1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions etrago/tools/network.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,12 @@ def __init__(

self.get_clustering_data(csv_folder_name)

conn = db.connection(section=self.args["db"])
self.engine = conn

session = sessionmaker(bind=conn)
self.session = session()

else:
logger.error("Set args or csv_folder_name")

Expand Down

0 comments on commit 4dac3b1

Please sign in to comment.