Closed khiyer closed 8 months ago
Sanity check: https://fathomnet.org/worms/taxa/info/Caballeraxine%20chainanica
@kevinsbarnard Aș @khiyer noted, there's a typo in WormsNode:610.
- apiaId: Optional[int] = None
+ aphiaId: Optional[int] = None
Thanks for catching and reporting this, @khiyer! I'll push out a fix today.
Fixed in v1.2.2. WormsNode.aphiaId
is now populated:
>>> from fathomnet.api import worms
>>> print(worms.get_info('Caballeraxine chainanica'))
WormsNode(name='Caballeraxine chainanica', rank='Species', aphiaId=519223, alternateNames=[], children=None)
The 'worms' package does not return 'AphiaID'. Here's an example:
This returns
Note that the returned tuple name for AphiaID seems to be misspelled as
apiaId