From 0b7bf3c97bf05744dd82f31fbeb26b93e7648986 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ma=C3=ABl=20Madon?= <mael.madon@irit.fr>
Date: Tue, 1 Nov 2022 15:36:50 +0100
Subject: [PATCH] refac: renaming project

---
 README.md                | 6 +++---
 test/test_integration.py | 8 ++++----
 2 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/README.md b/README.md
index c66b0b4..f087a6c 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,4 @@
-# swf2sessions
+# swf2userSessions
 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.
\ No newline at end of file
diff --git a/test/test_integration.py b/test/test_integration.py
index 6bd6108..efbac77 100644
--- a/test/test_integration.py
+++ b/test/test_integration.py
@@ -16,14 +16,14 @@ def test_bad_output():
     bad_output_name = "/grumpf"
     with pytest.raises(subprocess.CalledProcessError):
         subprocess.run([
-            'python3', 'swf2sessions.py', '-at', '30', KTH_WL.swf_file,
+            'python3', 'swf2userSessions.py', '-a', '30', KTH_WL.swf_file,
             bad_output_name
         ],
                        check=True)
 
 
 def test_kth_delim_last():
-    """Launch swf2sessions with 'last' delimitation approach and several threshold values"""
+    """Launch swf2userSessions with 'last' delimitation approach and several threshold values"""
 
     for threshold in thresholds:
         out_dir, _ = run_script('last', threshold)
@@ -33,7 +33,7 @@ def test_kth_delim_last():
 
 
 def test_kth_delim_arrival():
-    """Launch swf2sessions with 'arrival' delimitation approach and several threshold values"""
+    """Launch swf2userSessions with 'arrival' delimitation approach and several threshold values"""
 
     for threshold in thresholds:
         out_dir, _ = run_script('arrival', threshold)
@@ -43,7 +43,7 @@ def test_kth_delim_arrival():
 
 
 def test_kth_delim_max():
-    """Launch swf2sessions with 'max' delimitation approach and several threshold values"""
+    """Launch swf2userSessions with 'max' delimitation approach and several threshold values"""
 
     for threshold in thresholds:
         out_dir, _ = run_script('max', threshold)
-- 
GitLab