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
Problem with spectra having discontinuous domain #2820
Comments
Indeed currently NMRium expect to have a constant deltaX because we are reducing the number of points in order to increase display speed. |
@andcastillo The culprit is likely https://github.com/mljs/spectra-processing/blob/14c0ddeecb8af069f98db44a54465c9f05edf5a2/src/xy/xyReduce.ts#L26 because we don't expect deltaX to change. If you are able to improve the code without slowing it down you are welcome to make a PR. |
x Related to cheminfo#2820
what do you think about split the discontinue spectrum into several continue spectra, in that way nmrium could manage correctly those ROIs |
I have some spectra in .nmrium format with discontinuous x. When I full zoom out, it fill the gap with some points around the hole. If you zoom in around the zone, it shows the right flat zone.
toview.json
Use the attached file to reproduce the problem. I changed the extension to .json.
The text was updated successfully, but these errors were encountered: