Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
minerva
core
Commits
40da8a19
Commit
40da8a19
authored
Sep 20, 2021
by
Piotr Gawron
Browse files
make the results more reproducible
parent
b79ba47c
Changes
1
Hide whitespace changes
Inline
Side-by-side
converter/src/main/java/lcsb/mapviewer/converter/ZIndexPopulator.java
View file @
40da8a19
...
...
@@ -22,6 +22,7 @@ import lcsb.mapviewer.model.map.species.Species;
import
lcsb.mapviewer.model.map.species.field.ModificationResidue
;
import
lcsb.mapviewer.model.map.species.field.SpeciesWithModificationResidue
;
import
lcsb.mapviewer.model.map.species.field.StructuralState
;
import
lcsb.mapviewer.modelutils.map.ElementUtils
;
/**
* This util class populate with z-index data if necessary.
...
...
@@ -96,7 +97,7 @@ public class ZIndexPopulator {
}
private
int
compareStructuralStates
(
final
StructuralState
o1
,
final
StructuralState
o2
)
{
return
-
double
Comparator
.
compare
(
o1
.
get
Size
(),
o2
.
get
Size
());
return
-
string
Comparator
.
compare
(
o1
.
get
ElementId
(),
o2
.
get
ElementId
());
}
private
int
compareReactions
(
final
Reaction
o1
,
final
Reaction
o2
)
{
...
...
Write
Preview
Supports
Markdown
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!
Cancel
Please
register
or
sign in
to comment