You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pyvo.regsearch includes a keywords argument is documented to be a list of strings. However, a string is accepted without raising an exception, but doesn't have an intuitive behavior. The string is treated as a sequence of characters which individually are used as keywords, giving many more results than one would expect for a single keyword.
In the case of keywords='allwise', service_type='image', 268 results are returned. With keywords=['allwise'], service_type='image', only one result is returned.
Since this is an easy mistake for a user to make, we should either raise an exception when keywords is a str, or accept the str value and treat it as a single keyword. The latter seems most reasonable to me.
The text was updated successfully, but these errors were encountered:
pyvo.regsearch
includes akeywords
argument is documented to be a list of strings. However, a string is accepted without raising an exception, but doesn't have an intuitive behavior. The string is treated as a sequence of characters which individually are used as keywords, giving many more results than one would expect for a single keyword.In the case of
keywords='allwise'
,service_type='image'
, 268 results are returned. Withkeywords=['allwise'], service_type='image'
, only one result is returned.Since this is an easy mistake for a user to make, we should either raise an exception when
keywords
is astr
, or accept thestr
value and treat it as a single keyword. The latter seems most reasonable to me.The text was updated successfully, but these errors were encountered: