Skip to content

Commit

Permalink
deprecate HeasarcBrowse
Browse files Browse the repository at this point in the history
  • Loading branch information
zoghbi-a committed May 15, 2024
1 parent c461908 commit baf95ed
Show file tree
Hide file tree
Showing 10 changed files with 7 additions and 1,222 deletions.
3 changes: 1 addition & 2 deletions astroquery/heasarc/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,8 @@ class Conf(_config.ConfigNamespace):

conf = Conf()

from .core import Heasarc, HeasarcClass, HeasarcBrowseClass, HeasarcBrowse
from .core import Heasarc, HeasarcClass

__all__ = ['Heasarc', 'HeasarcClass',
'HeasarcBrowseClass', 'HeasarcBrowse',
'Conf', 'conf',
]
11 changes: 4 additions & 7 deletions astroquery/heasarc/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@
from ..exceptions import InvalidQueryError, NoResultsWarning
from . import conf

from .heasarc_browse import HeasarcBrowseClass


@async_to_sync
class HeasarcClass(BaseQuery):
Expand Down Expand Up @@ -98,7 +96,7 @@ def _get_default_cols(self, table_name):
"""
meta = self._meta[
(self._meta['table'] == table_name)
and (self._meta['par'] != '')
& (self._meta['par'] != '')
]
meta.sort('value')
defaults = meta['par']
Expand All @@ -119,7 +117,7 @@ def get_default_radius(self, table_name):
"""
meta = self._meta[
(self._meta['table'] == table_name)
and (self._meta['par'] == '')
& (self._meta['par'] == '')
]
radius = np.double(meta['value'][0]) * u.arcmin
return radius
Expand Down Expand Up @@ -503,8 +501,8 @@ def get_links(self, query_result=None, tablename=None):

if tablename is None:
tablename = self._tablename
if (
not isinstance(tablename, str)
if not (
isinstance(tablename, str)
and tablename in self.tap.tables.keys()
):
raise ValueError(f'Unknown table name: {tablename}')
Expand Down Expand Up @@ -747,4 +745,3 @@ def _s3_tree_download(client, bucket_name, path, local):


Heasarc = HeasarcClass()
HeasarcBrowse = HeasarcBrowseClass()
Loading

0 comments on commit baf95ed

Please sign in to comment.