Skip to content
Snippets Groups Projects
Commit 79a25258 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

Merge branch '2255-duplication-of-protein-modification-residues' into 'devel_18.2.x'

Resolve "Duplication of protein modification residues"

See merge request !1892
parents d7de5cbd 1ebf14b5
No related branches found
No related tags found
4 merge requests!1897Allow to remove group with overlays,!1896Master,!1895Devel 18.2.x,!1892Resolve "Duplication of protein modification residues"
Pipeline #103558 canceled
minerva (18.2.1) stable; urgency=medium
* Bug fix: project status on project upload did not refresh properly (#2258)
* Bug fix: export to CellDesigner could duplicate modification residues when
rounding issues appeared (#2255)
-- Piotr Gawron <piotr.gawron@uni.lu> Wed, 09 Apr 2025 13:00:00 +0200
......
......@@ -125,12 +125,12 @@ public class SpeciesWithModificationData {
}
private String getResidueKey(final Residue residue) {
final int angle = (int) (new CellDesignerModificationResidue(residue).getAngle() * 1000);
final long angle = Math.round(new CellDesignerModificationResidue(residue).getAngle() * 1000);
return residue.getName() + "_" + angle;
}
private String getBindingRegionKey(final BindingRegion residue) {
final int angle = (int) (new CellDesignerModificationResidue(residue).getAngle() * 1000);
final long angle = Math.round(new CellDesignerModificationResidue(residue).getAngle() * 1000);
final int width = (int) residue.getWidth();
final int height = (int) residue.getHeight();
return residue.getName() + "_" + angle + "_" + width + "_" + height;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment