USGS plugin MonitoringFeature get method returns wrong monitoring feature
Closed this issue · 0 comments
vchendrix commented
USGS plugin class USGSMonitoringFeatureAccess get method returns the wrong monitoring feature.
To Reproduce
>>> from basin3d.plugins import usgs
>>> from basin3d import synthesis
>>> synthesizer = synthesis.register()
>>> mf = synthesizer.monitoring_features(id='USGS-1402')
>>> print(f"{mf.id} - {mf.description}")
USGS-0101 - SUBREGION: St. John
Expected behavior
USGS-1402 - SUBREGION: Gunnison
Should be returned
Desktop (please complete the following information):
- Python 3.7.7
Additional context
The doc example passes which is why this wasn't caught earlier. I have not tested but I suspect that the returned object with id and description: USGS-0101 - SUBREGION: St. John is the first object in the list.