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

Unit test added for wcs_functions.py #1654

Closed

Conversation

s-goldman
Copy link
Collaborator

@s-goldman s-goldman commented Aug 23, 2023

A unit test has been added to wcs_functions using a sample drc and flc fits header files.

@codecov
Copy link

codecov bot commented Aug 23, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (ed40f61) 33.76% compared to head (e53abe9) 32.34%.

❗ Current head e53abe9 differs from pull request most recent head 59ce6c5. Consider uploading reports for the commit 59ce6c5 to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1654      +/-   ##
==========================================
- Coverage   33.76%   32.34%   -1.42%     
==========================================
  Files         126      159      +33     
  Lines       31157    35077    +3920     
  Branches     5710        0    -5710     
==========================================
+ Hits        10520    11347     +827     
- Misses      19448    23730    +4282     
+ Partials     1189        0    -1189     

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

drizzlepac/wcs_functions.py Outdated Show resolved Hide resolved
drizzlepac/wcs_functions.py Outdated Show resolved Hide resolved
drizzlepac/wcs_functions.py Outdated Show resolved Hide resolved
@s-goldman
Copy link
Collaborator Author

@mcara I've added your suggestions as well as a unit test that uses very small fits files, mostly just encapsulating the header information of a sample drc and flc file into fits files.

drizzlepac/wcs_functions.py Outdated Show resolved Hide resolved
drizzlepac/wcs_functions.py Outdated Show resolved Hide resolved
@s-goldman
Copy link
Collaborator Author

@mcara I like those suggestion far better that what I had. Thanks, suggestions included.

mcara
mcara previously approved these changes Aug 24, 2023
@s-goldman s-goldman enabled auto-merge (squash) August 24, 2023 14:58
@s-goldman s-goldman disabled auto-merge August 24, 2023 14:58
drizzlepac/wcs_functions.py Outdated Show resolved Hide resolved
@s-goldman s-goldman requested a review from mcara December 11, 2023 21:09
drizzlepac/wcs_functions.py Outdated Show resolved Hide resolved
@s-goldman s-goldman changed the title cell_util.py's get_skycell function enabled for drc's Unit test added for wcs_functions.py Dec 19, 2023
@s-goldman s-goldman closed this Jan 29, 2024
@s-goldman s-goldman deleted the get_skycell_improvement branch January 29, 2024 16:09
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