astropy / astropy/pyvo

DOC: warning from registry example

Open
#359 2 comments 0 reactions 0 assignees View on GitHub
component: registry upstream
Dominant language
Python
Stars
88
Forks
64
Avg merge
38m
Merged PRs (30d)
1

Description

The example we show in the documentation issues a W02 warning. Is there anything we can do about it? It's not like the users can, so it should either be captured in the library code itself, or the example reworked so it's not being issued to begin with

cc @msdemlei

Code:

```
from pyvo import registry
resources = registry.search(registry.UCD("src.redshift"), registry.Freetext("supernova"))
resources[4].get_tables()
```

warning:
```
/Users/bsipocz/munka/devel/pyvo/pyvo/io/vosi/vodataservice.py:836: W02: ?:?:?: W02: '' is not a valid datatype according to the VOSI spec
vo_warn(W02, value, self._config, self._pos)
Out[4]: {'J/A+A/437/789/table2': ... 19 columns ...}
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the warning with the documented registry example, then inspect pyvo/io/vosi/vodataservice.py around line 836 and the get_tables() path. Determine whether the library should handle the empty datatype or the example should avoid it; done means the documentation example no longer emits W02.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend-api-design
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.