Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecations in the tutorial/example of obtaining a science window list with python #324

Open
interstellxr opened this issue Feb 24, 2025 · 1 comment
Assignees

Comments

@interstellxr
Copy link

Some parts of this tutorial/example need to be updated according to the latest version of astroquery.

See the changes I had to do below:

def get_scw_list(ra_obj, dec_obj,radius,start_date,end_date ):
    R = Heasarc.query_region(
            position = SkyCoord(ra_obj, dec_obj, unit='deg'),
            radius = f"{radius} deg",
            catalog = 'intscw', # 'mission' has been deprecated, use catalog instead
            time = start_date + " .. " + end_date,
            good_isgri = ">1000",
        )
    R.sort('scw_id') # changed SCW_ID to scw_id

    return R['scw_id'], R['scw_ver']  # changed SCW_VER to scw_ver
@burnout87
Copy link
Collaborator

Thanks @interstellxr for the feedback. We'll adjust the documentation accordingly

@burnout87 burnout87 self-assigned this Feb 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants