tum-ens / HAMLET

HAMLET: Hierarchical Agent-based Markets for Local Energy Trading
GNU General Public License v3.0
4 stars 2 forks source link

Empty progress bar from creator appears when running the executor #51

Closed jiahechu closed 11 months ago

jiahechu commented 1 year ago

When running the Executor, following progress bars appears: Screenshot (9) But actually there should be only one progress bar. If I delete from hamlet.creator.setup import Creator in HAMLET\hamlet\__init__.py, I got the right version of the progress bar: Screenshot (11) My assumption is that it's because the progress bar in class Creator is initialized outside of the __init__() function of the Creator: Screenshot (12) But if I move progress_bar = tqdm() into the def __init__() as self.progress_bar = tqdm(), I got the following error while creating the scenario: Screenshot (13)

TUM-Doepfert commented 11 months ago

Fixed with PR #55