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

mf-parser: MF.prototype.getInfo can be incoherent on successive calls due to caching #232

Open
tpoisseau opened this issue Dec 4, 2024 · 0 comments
Labels

Comments

@tpoisseau
Copy link
Collaborator

const mf = new MF('Na+.Cl-');

// OK
expect(mf.getInfo().monoisotopicMass).toBe(57.958621964);

// error, undefined, because getInfo is cached in the instance
expect(mf.getInfo({emFieldName: 'test'}).test).toBe(57.958621964); 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants