JuliaAstro / FITSIO.jl

Flexible Image Transport System (FITS) file support for Julia
http://juliaastro.org/FITSIO.jl/
MIT License
55 stars 29 forks source link

Delete key in FITSHeader #179

Closed jbrinchmann closed 2 years ago

jbrinchmann commented 2 years ago

Hi,

I need to delete keywords in FITSHeaders relatively frequently so I implemented a deletekey function which perhaps is of interest. This PR has that implemented as well as adding it to exports and putting in a simple test case.

codecov[bot] commented 2 years ago

Codecov Report

Merging #179 (e616c4f) into master (0c6e209) will increase coverage by 0.15%. The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #179      +/-   ##
==========================================
+ Coverage   91.11%   91.26%   +0.15%     
==========================================
  Files           5        5              
  Lines         675      687      +12     
==========================================
+ Hits          615      627      +12     
  Misses         60       60              
Impacted Files Coverage Δ
src/FITSIO.jl 100.00% <ø> (ø)
src/header.jl 86.24% <100.00%> (+0.93%) :arrow_up:

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 0c6e209...e616c4f. Read the comment docs.

mileslucas commented 2 years ago

This looks good, thanks for contributing!