sound-data / DEER-Prototypes-EnergyPlus

13 stars 4 forks source link

Create a standalone progress bar script #10

Open simularis opened 1 year ago

simularis commented 1 year ago

Display simulation progress bars, one for each subfolder under analysis root with model input files. This script runs separate from Modelkit. For best results, the user should first compose all the models prior to starting simulations.

Usage:

    $terminal1> cd C:/Users/user1/source/DEER-Prototypes-EnergyPlus/Analysis/mymeasure
    $terminal1> modelkit rake compose
    $terminal1> modelkit rake
    $terminal1> cd C:/Users/user1/source/DEER-Prototypes-EnergyPlus
    $terminal2> python scripts/how-to-track-progress.py ./Analysis

Example output:

    Hit Ctrl+C to interrupt.
    DMo_Furnace: 100%|████████████████████████████████████████████████████████████████████████████| 320/320 [00:03<00:00, 88.90it/s]
    MFm_Furnace_Ex: 100%|█████████████████████████████████████████████████████████████████████████| 160/160 [00:03<00:00, 45.05it/s] 
    MFm_Furnace_New: 100%|████████████████████████████████████████████████████████████████████████| 160/160 [00:03<00:00, 45.69it/s] 
    SFm_Furnace_1975: 100%|███████████████████████████████████████████████████████████████████████| 180/180 [00:03<00:00, 52.25it/s] 
    SFm_Furnace_1985: 100%|███████████████████████████████████████████████████████████████████████| 140/140 [00:03<00:00, 41.13it/s] 
    SFm_Furnace_New: 100%|████████████████████████████████████████████████████████████████████████| 320/320 [00:03<00:00, 96.73it/s]