Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
swf2userSessions
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
sepia-pub
mael
swf2userSessions
Commits
11b40863
Commit
11b40863
authored
2 years ago
by
Maël Madon
Browse files
Options
Downloads
Patches
Plain Diff
dev: add in each SABjson the command used to generate it
parent
0c6ecad2
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/user_session_builder.py
+3
-1
3 additions, 1 deletion
src/user_session_builder.py
with
3 additions
and
1 deletion
src/user_session_builder.py
+
3
−
1
View file @
11b40863
...
...
@@ -6,6 +6,7 @@ according to the delimitation approach.
from
datetime
import
datetime
import
networkx
as
nx
from
src.workload
import
Session
import
sys
class
User
:
"""
Class representing a user of the workload.
"""
...
...
@@ -157,10 +158,11 @@ class User:
"""
User object to dictionnary, for printing or json export.
"""
if
descr
is
None
:
descr
=
f
"
user
{
self
.
id
}
"
descr
=
f
"
Session Annotated Batsim JSON for
user
{
self
.
id
}
"
res
=
{
"
description
"
:
descr
,
"
date
"
:
str
(
datetime
.
now
()),
"
command
"
:
'
'
.
join
(
sys
.
argv
[:]),
"
nb_res
"
:
self
.
max_nb_res
,
"
version
"
:
version
,
"
sessions
"
:
[
s
.
to_dict
()
for
_
,
s
in
self
.
sessions
.
items
()]
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment