astropy / astropy/astroquery

Gemini: get_file should be flexible about the filename

Open
#1,997 0 comments 0 reactions 0 assignees View on GitHub
gemini
Dominant language
Python
Stars
791
Forks
451
Avg merge
1d 3h
Merged PRs (30d)
4

Description

The API can return filenames from the Gemini service that end in .bz2, but the download request wants the .fits filename. This maks the intuitive use of the astroquery module fail. i.e. something like this should work as the user would expect

```
for fname in res['filename']:
Observations.get_file(fname)
```

Contributor guide

Open the contributing guide

Research direction

Start at the Observations.get_file entry point and trace how Gemini filenames from res['filename'] are converted into the download request. Verify the behavior with a response whose filename ends in .bz2; done means the example loop downloads the corresponding .fits file without requiring manual filename changes.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.