Skip to content

Conversation

@jaymedina
Copy link
Contributor

Closes #2182

@codecov
Copy link

codecov bot commented Oct 20, 2021

Codecov Report

Merging #2183 (bfe1491) into main (7de9084) will not change coverage.
The diff coverage is 100.00%.

❗ Current head bfe1491 differs from pull request most recent head 03c8f72. Consider uploading reports for the commit 03c8f72 to get more accurate results
Impacted file tree graph

@@           Coverage Diff           @@
##             main    #2183   +/-   ##
=======================================
  Coverage   66.10%   66.10%           
=======================================
  Files         418      418           
  Lines       28167    28167           
=======================================
  Hits        18619    18619           
  Misses       9548     9548           
Impacted Files Coverage Δ
astroquery/mast/collections.py 92.10% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7de9084...03c8f72. Read the comment docs.

Copy link
Member

@bsipocz bsipocz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good spotting of the bug, thanks. One minor comment before we merge.

@bsipocz bsipocz added this to the v0.4.4 milestone Oct 21, 2021
@jaymedina
Copy link
Contributor Author

I'll be rebasing later today when I'm more awake. Will ping when checks pass

@jaymedina
Copy link
Contributor Author

For some reason I get this error when trying to put the f-string in directly on that line:

  File "/Users/jmedina/Documents/gh-forks/astroquery/astroquery/mast/collections.py", line 470
    local_path = os.path.join(base_dir, f'{spec['DatasetName']}.fits')
                                                 ^
SyntaxError: f-string: unmatched '['

So I'll just call it filename instead of DatasetName

@bsipocz bsipocz force-pushed the catalogs-dl-hscSpectra-typo branch from bfe1491 to 03c8f72 Compare October 22, 2021 03:22
@bsipocz
Copy link
Member

bsipocz commented Oct 22, 2021

I've squashed the commits as having 5 commits for 3/4 line changes was superfluous (https://docs.astropy.org/en/latest/development/workflow/development_workflow.html#how-to-squash)

@bsipocz bsipocz merged commit c29328b into astropy:main Oct 22, 2021
@bsipocz
Copy link
Member

bsipocz commented Oct 22, 2021

Thanks both!

@jaymedina
Copy link
Contributor Author

Hi @bsipocz , when someone pip installs astroquery does this change come with the latest version? Our unit tests for this method are still breaking.

I'm wondering if it has something to do with the version of astroquery in pip having to be updated manually - I think I heard something along those lines being an issue at the moment?

@bsipocz
Copy link
Member

bsipocz commented Nov 15, 2021

It's not yet on pypi.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

astroquery.mast Catalogs: HSC spectra downloaded with incorrect filename

3 participants