Skip to content
Snippets Groups Projects
Commit c105de73 authored by Maël Madon's avatar Maël Madon
Browse files

dev: change output name to 'userN.SABjson' instead of 'N.SABjson'

parent 0b7bf3c9
Branches
Tags
No related merge requests found
...@@ -52,7 +52,7 @@ def swf2sessions(input_swf, output_dir, delim_approach, delim_threshold, ...@@ -52,7 +52,7 @@ def swf2sessions(input_swf, output_dir, delim_approach, delim_threshold,
# SWF finished, output for each user # SWF finished, output for each user
for user_id, user in users.items(): for user_id, user in users.items():
with open(f"{output_dir}/{user_id}.SABjson", "w") as file: with open(f"{output_dir}/user{user_id}.SABjson", "w") as file:
json.dump(user.to_dict(), file) json.dump(user.to_dict(), file)
if build_graph_rep: if build_graph_rep:
......
...@@ -9,7 +9,7 @@ def load_expected_output(file_name): ...@@ -9,7 +9,7 @@ def load_expected_output(file_name):
return json.load(fd) return json.load(fd)
def load_output(file_name): def load_output(file_name):
with open(os.path.abspath(f"test-out/{file_name}/1.SABjson"), "r") as fd: with open(os.path.abspath(f"test-out/{file_name}/user1.SABjson"), "r") as fd:
return json.load(fd) return json.load(fd)
def compare_with_expected_output(test_name): def compare_with_expected_output(test_name):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment