Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
VEBER Philippe
codepi
Commits
5ea6131a
Commit
5ea6131a
authored
Jul 27, 2018
by
LANORE Vincent
Browse files
Corrected bug when pair bins contain only 1 value.
parent
a2c8e384
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
lib/scripts/generate_pairs.py
lib/scripts/generate_pairs.py
+1
-0
No files found.
lib/scripts/generate_pairs.py
View file @
5ea6131a
...
...
@@ -178,6 +178,7 @@ MESSAGE("Post-treatment of pair bins...")
for
i
in
range
(
nb_bins
):
pair_bins
[
i
]
=
pair_bins
[
i
].
sort_values
(
by
=
[
"distance"
])
plot_bins
=
int
(
float
(
pair_bins
[
i
][
"distance"
].
max
()
-
pair_bins
[
i
][
"distance"
].
min
())
/
0.01
)
plot_bins
=
max
(
1
,
plot_bins
)
pair_bins
[
i
][
"distance"
].
hist
(
bins
=
plot_bins
)
plt
.
title
(
"Distributions of pair distance classes"
)
if
showplot
:
...
...
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