Clean bad links from AlmaClass.query_sia docstring
The docstring of `astroquery.alma.AlmaClass.query_sia()` is constructed
with the help of `pyvo.dal.sia2.SIA_PARAMETERS_DESC` constant, which
however contains links that Sphinx is unable to resolve. These links are
removed by this commit so that the documentation build can succeed.
@@ -426,6 +426,10 @@ class AlmaClass(QueryWithLogin):
maxrec=maxrec,
**kwargs)
+ # SIA_PARAMETERS_DESC contains links that Sphinx can't resolve.
+ for var in ('POLARIZATION_STATES', 'CALIBRATION_LEVELS'):
+ SIA_PARAMETERS_DESC = SIA_PARAMETERS_DESC.replace(f'`pyvo.dam.obscore.{var}`',
+ f'pyvo.dam.obscore.{var}')
query_sia.__doc__ = query_sia.__doc__.replace('_SIA2_PARAMETERS', SIA_PARAMETERS_DESC)
def query_tap(self, query, maxrec=None):
