Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
Exareme2
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
3
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
HBP Medical Informatics Platform
Exareme2
Commits
4dc05ca2
Unverified
Commit
4dc05ca2
authored
2 years ago
by
Apostolos Glenis
Committed by
GitHub
2 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #367 from madgik/histogram_fix_dataset
now setting dataset as yvar works
parents
6166ccc1
a135fbab
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
mipengine/algorithms/multiple_histograms.py
+2
-2
2 additions, 2 deletions
mipengine/algorithms/multiple_histograms.py
with
2 additions
and
2 deletions
mipengine/algorithms/multiple_histograms.py
+
2
−
2
View file @
4dc05ca2
...
...
@@ -41,6 +41,7 @@ class HistogramAlgorithm(Algorithm, algname="multiple_histograms"):
xvars
=
self
.
executor
.
x_variables
or
[]
yvars
=
self
.
executor
.
y_variables
or
[]
yvar
=
yvars
[
0
]
default_bins
=
20
bins
=
self
.
executor
.
algorithm_parameters
.
get
(
"
bins
"
,
default_bins
)
...
...
@@ -51,13 +52,12 @@ class HistogramAlgorithm(Algorithm, algname="multiple_histograms"):
metadata
=
dict
(
self
.
executor
.
metadata
)
vars
=
[
var
for
var
in
xvars
+
yvars
if
var
!=
"
dataset
"
]
vars
=
[
var
for
var
in
xvars
+
yvars
]
nominal_vars
=
[
var
for
var
in
vars
if
metadata
[
var
][
"
is_categorical
"
]]
enumerations_dict
=
{
var
:
metadata
[
var
][
"
enumerations
"
]
for
var
in
nominal_vars
}
yvar
=
yvars
[
0
]
if
yvar
in
xvars
:
xvars
.
remove
(
yvar
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
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