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
There is a weird thing with the tests, that if one runs the patched example, it returns an EmptyResponseError. I wonder if we could use examples, even for the local tests that should work when actually querying the server?
>>> from astroquery.linelists.cdms import CDMS
>>> from astropy import units as u
>>> tbl = CDMS.query_lines(min_frequency=100 * u.GHz,
... max_frequency=1000 * u.GHz,
... min_strength=-500,
... molecule="CO")
EmptyResponseError Traceback (most recent call last)
Cell In[1], line 3
1 from astroquery.linelists.cdms import CDMS
2 from astropy import units as u
----> 3 tbl = CDMS.query_lines(min_frequency=100 * u.GHz,
4 max_frequency=1000 * u.GHz,
5 min_strength=-500,
6 molecule="CO")
File ~/munka/devel/astroquery/astroquery/utils/class_or_instance.py:25, in class_or_instance.__get__.<locals>.f(*args, **kwds)
23 def f(*args, **kwds):
24 if obj is not None:
---> 25 return self.fn(obj, *args, **kwds)
26 else:
27 return self.fn(cls, *args, **kwds)
File ~/munka/devel/astroquery/astroquery/utils/process_asyncs.py:26, in async_to_sync.<locals>.create_method.<locals>.newmethod(self, *args, **kwargs)
22 @class_or_instance
23 def newmethod(self, *args, **kwargs):
24 verbose = kwargs.pop('verbose', False)
---> 26 response = getattr(self, async_method_name)(*args, **kwargs)
27 if kwargs.get('get_query_payload') or kwargs.get('field_help'):
28 return response
File ~/munka/devel/astroquery/astroquery/linelists/cdms/core.py:165, in CDMSClass.query_lines_async(self, min_frequency, max_frequency, min_strength, molecule, temperature_for_intensity, flags, parse_name_locally, get_query_payload, cache)
163 break
164 if not ok:
--> 165 raise EmptyResponseError("Did not find table in response")
167 baseurl = self.URL.split('cgi-bin')[0]
168 fullurl = f'{baseurl}/{url}'
EmptyResponseError: Did not find table in response
The text was updated successfully, but these errors were encountered:
There is a weird thing with the tests, that if one runs the patched example, it returns an EmptyResponseError. I wonder if we could use examples, even for the local tests that should work when actually querying the server?
The text was updated successfully, but these errors were encountered: