Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
Expetator
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
Expetator
Commits
840b2f36
Commit
840b2f36
authored
2 years ago
by
Georges Da Costa
Browse files
Options
Downloads
Patches
Plain Diff
corrects a bug from moj
parent
6bb0fc69
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
expetator/monitoring_csv.py
+4
-0
4 additions, 0 deletions
expetator/monitoring_csv.py
with
4 additions
and
0 deletions
expetator/monitoring_csv.py
+
4
−
0
View file @
840b2f36
...
...
@@ -15,9 +15,13 @@ def _read_csv(filename):
def
read_host_csv
(
prefix
,
hostname
,
startTime
,
basename
,
fullname
,
archive_fid
=
None
):
fullpath
=
'
%s_%s/%s_%s_%s
'
%
(
basename
,
prefix
,
hostname
,
fullname
,
startTime
)
if
archive_fid
is
None
:
if
not
os
.
path
.
exists
(
fullpath
):
fullpath
=
'
%s_%s/%s_%s_%s
'
%
(
basename
,
prefix
,
'
localhost
'
,
fullname
,
startTime
)
with
open
(
fullpath
)
as
file_id
:
data
=
_read_csv
(
fullpath
)
else
:
if
not
fullpath
in
archive_fid
.
namelist
():
fullpath
=
'
%s_%s/%s_%s_%s
'
%
(
basename
,
prefix
,
'
localhost
'
,
fullname
,
startTime
)
with
archive_fid
.
open
(
fullpath
)
as
file_id
:
data
=
_read_csv
(
file_id
)
data
=
data
.
dropna
(
axis
=
'
columns
'
)
...
...
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