Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged

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
2 checks passed
@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
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