diff options
| author | Filip Wandzio <contact@philw.dev> | 2025-09-04 22:25:39 +0200 |
|---|---|---|
| committer | Filip Wandzio <contact@philw.dev> | 2025-09-04 22:25:39 +0200 |
| commit | 1ba21da6cbc63c0c549fb92731e25bedc482eb51 (patch) | |
| tree | ddf6fc2259a2495f8de336a07873cc3c6796785e /analysis/e1anl/src/main.py | |
| parent | e00f3a9ede1b8e46b480bd68daf48da0bb08acae (diff) | |
| download | e1-1ba21da6cbc63c0c549fb92731e25bedc482eb51.tar.gz e1-1ba21da6cbc63c0c549fb92731e25bedc482eb51.zip | |
Unify the directory, add new analysis methods, unify the code style
Signed-off-by: Filip Wandzio <contact@philw.dev>
Diffstat (limited to 'analysis/e1anl/src/main.py')
| -rw-r--r-- | analysis/e1anl/src/main.py | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/analysis/e1anl/src/main.py b/analysis/e1anl/src/main.py new file mode 100644 index 0000000..b35eead --- /dev/null +++ b/analysis/e1anl/src/main.py | |||
| @@ -0,0 +1,17 @@ | |||
| 1 | # main.py | ||
| 2 | |||
| 3 | from agregate import collect_data | ||
| 4 | from analyze import analyze | ||
| 5 | |||
| 6 | def main(): | ||
| 7 | DURATION_HOURS = 2 | ||
| 8 | DURATION_SECONDS = DURATION_HOURS * 3600 | ||
| 9 | |||
| 10 | print("Collecting data...") | ||
| 11 | collect_data(DURATION_SECONDS) | ||
| 12 | |||
| 13 | print("Analyzing data...") | ||
| 14 | analyze() | ||
| 15 | |||
| 16 | if __name__ == "__main__": | ||
| 17 | main() | ||
