Closed tiskapot closed 1 year ago
Hello,
Thank you for pointing this out, I've been using this in a vacuum. GlycanComposition
and it's subclasses cache the first calculation of mass
automatically, but I failed to document this. I've pushed a new commit to the master branch that will only cache the monoisotopic mass, which I still need to be on the fastest path.
If you can use the latest commit to confirm the behavior meets your needs, I can cut a new release on PyPI. If not convenient, it's a simple enough change that I've already tested against your examples and they look correct to me so I can just release it directly.
Seems to work fine. Thanks!
Release v1.0.8 contains this fix.
Hi
If a
GlycanComposition
is used directly to calculate the mass, I am able to get the average and the monoisotopic mass, but when aGlycanComposition
is assigned to a variable, it always returns the average mass regardless whether theaverage
argument isTrue
orFalse
. Is there a way to obtain the monoisotopic mass?