Skip to content

Setting astroquery to use local cached result in a specified directory only #3557

@mkenworthy

Description

@mkenworthy

I'm using showyourwork! in order to make reproducible workflows for my papers, and whilst I can use astroquery on a local computer hosted repository, I can't get it to work on the github actions that showyourwork! uses, because there is limited access to a shell to perform a curl call.

What I'd like to do is carry out the initial query by running the script that calls astroquery on my local machine, then move the cache to a specified local directory, then tell astroquery to only use the local cached data for running the script. In this way I can run it with github actions.

I can see that you can set a cached directory, but this is configured in a confguration file which has a default location from a home directory, and I can't see how to get astroquery to read in a configuration file from a different location.

What's the best way (if possible) to do this?

Many thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions