Conversation
6389964 to
84a0981
Compare
speth
left a comment
There was a problem hiding this comment.
The addition of findIsomers makes sense to me.
I don't see much of a direct use case for addSpeciesAlias, but I can imagine ways of using it if you had some extra data in your input file, e.g. the SMILES corresponding to each species, so adding some underlying infrastructure for this kind of feature seems fine.
Sometimes I find large molecules with non-intuitive species names, and keep having to remind myself what they actually are. Those names are also not consistent among groups; as |
ff5a863 to
d7ca08b
Compare
Codecov Report
@@ Coverage Diff @@
## master #714 +/- ##
==========================================
+ Coverage 70.85% 70.86% +0.01%
==========================================
Files 374 374
Lines 43668 43683 +15
==========================================
+ Hits 30939 30954 +15
Misses 12729 12729
Continue to review full report at Codecov.
|
This PR adds utility functions that facilitate selection of species and isomers. Functions are defined in the C++ layer and broken out using the Cython interface.
Changes proposed in this pull request:
add_species_aliasallows for alternate species names/shorthandsfind_isomersreturns a list of isomers for a given compositionUsage:
PS: the implementation of
findIsomersis analogous to #635; this PR explicitly does not address the overloading ofspeciesIndex(which could be simplified based on this PR).