-
Notifications
You must be signed in to change notification settings - Fork 0
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
getRanges #49
Comments
We should not forget that we need to be able to deal with ranges not associated with spectra (jcamp) because ranges may be created from a prediction for example. Please comment what is the best as syntax and what is the current state :
This could be equivalent to:
|
Then what is the difference between getRanges and createRanges? It would be better just to quit getRanges? |
Ranges should be (is) stored in a |
Why does |
The ranges have a chemical shift, integration (or number of hydrogens), and a list of couplings which can be referenced to other ranges, so you can describe a spin system with the ranges and you can reconstruct the spectrum through a simulation , but the peaks are just x,y positions. If we have a list of x,y peaks, we can calculate a sum of gaussians or lorentzians to reconstruct the spectrum. |
You are right that Ranges are composed of Signals that themself are composed of peaks. Normally a prediction will return Signals that is definitely a more precise representation of the spectrum. |
That is true. Daniel was confused with peaks/signals and I was confused with ranges/signals |
Then I guess we need |
We could but it is not that simple because when spectra are not simulated but don't really know where are the 'real' signals. |
spectra-data/src/NMR.js
Line 350 in 6e0aa36
I don't think
getRanges
should return the cached value since the parameters to compute them could be different from when they were cached. Actually if the parameters to compute them are not passed to the constructor and immutable, I don't see any reason to keepranges
cached.The text was updated successfully, but these errors were encountered: