Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@fjebaker
Copy link
Owner

Closes #77

  • Also fixes some issues relating to grouping possibly causing undefined memory bugs.
  • Adds the ability to specify some background / RMF / ARF file paths separately if they are not included in the FITS header.

Since FITS is a strongly-typed data format, sometimes we get annoying
behaviour. Something that is clearly a number is stored in the table as
a string, and the

        `T(value)`

conversion syntax fails, as it requires a `parse` call to convert a
string to a number. This commit adds a `_parse_any` function that
parses or converts a value to a given type, depending on whether it is
an `AbstractString` or not.
@codecov-commenter
Copy link

Codecov Report

Attention: 7 lines in your changes are missing coverage. Please review.

Comparison is base (c402071) 66.83% compared to head (4b05360) 68.32%.
Report is 1 commits behind head on main.

Files Patch % Lines
src/datasets/spectraldata.jl 25.00% 3 Missing ⚠️
src/datasets/ogipdataset.jl 0.00% 2 Missing ⚠️
src/datasets/ogip.jl 92.85% 1 Missing ⚠️
src/xspec-models/additive.jl 0.00% 1 Missing ⚠️

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #78      +/-   ##
==========================================
+ Coverage   66.83%   68.32%   +1.48%     
==========================================
  Files          40       40              
  Lines        1990     1992       +2     
==========================================
+ Hits         1330     1361      +31     
+ Misses        660      631      -29     

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

@fjebaker fjebaker merged commit 7198b88 into main Feb 21, 2024
@fjebaker fjebaker deleted the fergus/fix-fits-types branch February 21, 2024 12:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

FITS type "bug"

3 participants