Skip to content

EUCLID: the parameter output_file is not properly used in the method get_spectrum #3253

Merged
bsipocz merged 5 commits into
astropy:mainfrom
esdc-esac-esa-int:ESA_euclid_EUCLIDPCR-1914_new_datalink_retrieval_type
Mar 16, 2025
Merged

EUCLID: the parameter output_file is not properly used in the method get_spectrum #3253
bsipocz merged 5 commits into
astropy:mainfrom
esdc-esac-esa-int:ESA_euclid_EUCLIDPCR-1914_new_datalink_retrieval_type

Conversation

@cosmoJFH

Copy link
Copy Markdown
Contributor

Hi Astroquery team,

we want to fix the method get_spectrum in the Euclid module, so that the parameter output_file is properly used. We check that the output directory, defined by the the parameter output_file, is empty before it is used. Otherwise, the number of the returned files by this method could be incorrect. Also we have added the missing .zip extension when is necessary.

cc @esdc-esac-esa-int

jira: EUCLIDPCR-1914

@cosmoJFH cosmoJFH changed the title EUCLID: the parameter output_file is properly used in the method get_spectrum EUCLID: the parameter output_file is not properly used in the method get_spectrum Mar 14, 2025
@codecov

codecov Bot commented Mar 14, 2025

Copy link
Copy Markdown

Codecov Report

Attention: Patch coverage is 81.25000% with 3 lines in your changes missing coverage. Please review.

Project coverage is 69.09%. Comparing base (e1dbfa4) to head (7494746).
Report is 233 commits behind head on main.

Files with missing lines Patch % Lines
astroquery/esa/euclid/core.py 81.25% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3253      +/-   ##
==========================================
- Coverage   69.10%   69.09%   -0.02%     
==========================================
  Files         232      232              
  Lines       19634    19637       +3     
==========================================
  Hits        13568    13568              
- Misses       6066     6069       +3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Comment thread astroquery/esa/euclid/core.py Outdated
@bsipocz

bsipocz commented Mar 16, 2025

Copy link
Copy Markdown
Member

I rebase this to remove the datalink-related back-and-forth commits that are included in the other PR.

@bsipocz bsipocz force-pushed the ESA_euclid_EUCLIDPCR-1914_new_datalink_retrieval_type branch from 314b7ea to 7494746 Compare March 16, 2025 02:03

@bsipocz bsipocz left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

All looks good. Thanks!

@bsipocz bsipocz merged commit e538fe4 into astropy:main Mar 16, 2025
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.

3 participants