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

More sophisticated checks in restoreoptsum. #775

Merged
merged 11 commits into from
Jun 27, 2024
Merged

More sophisticated checks in restoreoptsum. #775

merged 11 commits into from
Jun 27, 2024

Conversation

dmbates
Copy link
Collaborator

@dmbates dmbates commented Jun 27, 2024

Closes #774

Did behavior change? Did you add need features? If so, please update NEWS.md

  • add entry in NEWS.md
  • after opening this PR, add a reference and run docs/NEWS-update.jl to update the cross-references.

Should we release your changes right away? If so, bump the version:

  • I've bumped the version appropriately

@dmbates dmbates requested a review from palday June 27, 2024 17:20
src/serialization.jl Outdated Show resolved Hide resolved
Copy link

codecov bot commented Jun 27, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.99%. Comparing base (34899cf) to head (a2b0857).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #775      +/-   ##
==========================================
+ Coverage   96.93%   96.99%   +0.06%     
==========================================
  Files          34       34              
  Lines        3358     3360       +2     
==========================================
+ Hits         3255     3259       +4     
+ Misses        103      101       -2     
Flag Coverage Δ
current 96.93% <100.00%> (+0.06%) ⬆️
minimum 96.84% <100.00%> (+<0.01%) ⬆️
nightly 96.50% <100.00%> (+0.06%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@palday
Copy link
Member

palday commented Jun 27, 2024

@dmbates can you add a test with loading a 4.22 optsum? That would also serve as a potential test if we add even more fields (restoreoptsum! would break again and thus we would be reminded to update it).

@dmbates
Copy link
Collaborator Author

dmbates commented Jun 27, 2024

I added tests and improved coverage slightly.

@palday
Copy link
Member

palday commented Jun 27, 2024

@dmbates I made a few changes directly:

  • made sure that "optional" fields are actually loaded when they exist
  • (fixed an old bug in how that was done for fitlog)
  • issue a warning when loading an old fit

@dmbates
Copy link
Collaborator Author

dmbates commented Jun 27, 2024

Did I accidentally commit a lcov.info file? I use the "Run tests with coverage" option in VS code which creates a lcov.info file and I see you have added that name to .gitignore

@dmbates dmbates merged commit a45fc14 into main Jun 27, 2024
12 checks passed
@dmbates dmbates deleted the db/optsumjsonkeys branch June 27, 2024 22:26
@palday
Copy link
Member

palday commented Jun 27, 2024

Did I accidentally commit a lcov.info file? I use the "Run tests with coverage" option in VS code which creates a lcov.info file and I see you have added that name to .gitignore

No, but I almost did 😂

@dmbates
Copy link
Collaborator Author

dmbates commented Jun 27, 2024

@JuliaRegistrator register

@JuliaRegistrator
Copy link

Comments on pull requests will not trigger Registrator, as it is disabled. Please try commenting on a commit or issue.

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.

restoreoptsum fails after change in JSON file structure in 4.25.0
3 participants