Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
beat.web
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
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
beat
beat.web
Merge requests
!246
Fix handling of itertools.izip
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Fix handling of itertools.izip
plotter_fix_zip_handling
into
1.4.x
Overview
1
Commits
1
Pipelines
1
Changes
1
Merged
Samuel GAIST
requested to merge
plotter_fix_zip_handling
into
1.4.x
6 years ago
Overview
1
Commits
1
Pipelines
1
Changes
1
Expand
In python 3, izip became zip in the global space.
0
0
Merge request reports
Compare
1.4.x
1.4.x (base)
and
latest version
latest version
ff7e9ca5
1 commit,
6 years ago
1 file
+
7
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
beat/web/plotters/views.py
+
7
−
1
Options
@@ -29,6 +29,7 @@ import os
import
itertools
import
base64
import
collections
import
six
import
logging
logger
=
logging
.
getLogger
(
__name__
)
@@ -122,7 +123,12 @@ def plot(request):
report_experiments
,
report_legends
=
report
.
_get_experiments_and_alias
(
alias_filter
)
experiments
=
collections
.
OrderedDict
()
for
xpid
,
analyzer
,
output
in
itertools
.
izip
(
if
six
.
PY2
:
zip_
=
itertools
.
izip
else
:
zip_
=
zip
for
xpid
,
analyzer
,
output
in
zip_
(
report_experiments
or
use
.
getlist
(
'
experiment
'
)
or
use
.
getlist
(
'
experiment[]
'
),
itertools
.
cycle
(
use
.
getlist
(
'
analyzer
'
)
or
use
.
getlist
(
'
analyzer[]
'
)),
itertools
.
cycle
(
use
.
getlist
(
'
output
'
)
or
use
.
getlist
(
'
output[]
'
)),
Loading