Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
LHCData
lhc-sm-hwc
Commits
4126aaed
Commit
4126aaed
authored
Oct 28, 2021
by
Agata Malgorzata Chadaj
Browse files
wip
parent
01a0fd79
Pipeline
#3175930
canceled with stage
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
CI/send_results.py
View file @
4126aaed
...
...
@@ -32,7 +32,9 @@ def get_result():
def
save_json_to_file
(
args
,
flag
,
comment
):
file_path
=
'/eos/home-m/mpesoft/'
+
':'
.
join
([
args
.
notebook
,
args
.
circuit_name
,
args
.
discharge_level
,
Time
.
to_unix_timestamp
(
args
.
start_time
),
Time
.
to_unix_timestamp
(
args
.
end_time
),
flag
])
+
'.csv'
file_path
=
'/eos/home-m/mpesoft/'
+
':'
.
join
([
args
.
notebook
,
args
.
circuit_name
,
str
(
args
.
discharge_level
),
Time
.
to_unix_timestamp
(
args
.
start_time
),
Time
.
to_unix_timestamp
(
args
.
end_time
),
flag
])
+
'.csv'
df
=
pd
.
DataFrame
(
eval
(
comment
))
with
open
(
file_path
,
'a'
)
as
f
:
df
.
to_csv
(
f
,
mode
=
'a'
,
header
=
f
.
tell
()
==
0
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment