Skip to content

LIMS-1026: Don't round everything to 5 decimal places#710

Merged
ndg63276 merged 1 commit intoprereleasefrom
fix/LIMS-1026/dont-round-everything-to-5-decimal-places
Jan 5, 2024
Merged

LIMS-1026: Don't round everything to 5 decimal places#710
ndg63276 merged 1 commit intoprereleasefrom
fix/LIMS-1026/dont-round-everything-to-5-decimal-places

Conversation

@ndg63276
Copy link
Collaborator

@ndg63276 ndg63276 commented Jan 4, 2024

JIRA ticket: LIMS-1026

Summary:

Floats from the database are rounded to 5 decimal places, then rounded again when displayed. See eg https://ispyb.diamond.ac.uk/dc/visit/mx33658-13/id/11629518 which has wavelength of 0.953745 rounded first to 0.95375 then again to 0.9538.

Changes:

  • Delete the code that rounds unnecessarily

To test:

@gfrn gfrn self-requested a review January 5, 2024 17:39
@ndg63276 ndg63276 merged commit e894f4f into prerelease Jan 5, 2024
@ndg63276 ndg63276 deleted the fix/LIMS-1026/dont-round-everything-to-5-decimal-places branch January 5, 2024 20:21
NKatti2011 pushed a commit that referenced this pull request Jan 24, 2024
Co-authored-by: Mark Williams <mark.williams@diamond.ac.uk>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants