Python script to read a workload trace in the [Standard Workload Format](https://www.cs.huji.ac.il/labs/parallel/workload/swf.html)(SWF), decompose it into user sessions, analyse the dependencies between sessions and store the results in the Session Annotated Batsim JSON format (SABjson).
## What is a session?
...
...
@@ -23,10 +23,10 @@ Requirements:
To run the session decomposition on the workload `workloads/example.swf` illustrated above, with "Arrival" delimitation approach and a threshold of 60 minutes:
```terminal
python3 swf2sessions.py -a 60 workloads/example.swf out/
python3 swf2userSessions.py -a 60 workloads/example.swf out/
```
For more documentation, see: `python3 swf2sessions.py -h`
For more documentation, see: `python3 swf2userSessions.py -h`
## Tests
Some integration tests have been written for this script, and are stored in the `test/` folder. To run them on your machine, just type `pytest` at the root of the project.