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

Refactor YAML serialiser as ruamel.yaml plugin #484

Merged
merged 1 commit into from
Oct 12, 2021
Merged

Conversation

sdhiscocks
Copy link
Member

This shouldn't be a breaking change, as original class simply proxied existing methods anyway.

Also enable entry point to allow additional extensions to serialisation via entry point. This is to work over limitation of only being able to use one plugin at a time with ruamel.yaml, as well as allow easier integration with Stone Soup plugins.

This shouldn't be a breaking change, as original class simply proxied
existing methods anyway.

Also enable entry point to allow additional extensions to serialisation
via entry point. This is to work over limitation of only being able to
use one plugin at a time with ruamel.yaml, as well as allow easier
integration with Stone Soup plugins.
@codecov
Copy link

codecov bot commented Aug 16, 2021

Codecov Report

Merging #484 (7c5fe40) into main (94b6c0e) will decrease coverage by 0.09%.
The diff coverage is 94.39%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #484      +/-   ##
==========================================
- Coverage   94.21%   94.11%   -0.10%     
==========================================
  Files         143      143              
  Lines        7000     6984      -16     
  Branches     1031     1034       +3     
==========================================
- Hits         6595     6573      -22     
- Misses        308      312       +4     
- Partials       97       99       +2     
Flag Coverage Δ
integration 67.34% <21.49%> (-0.17%) ⬇️
unittests 91.25% <94.39%> (-0.11%) ⬇️

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

Impacted Files Coverage Δ
stonesoup/serialise.py 95.23% <94.28%> (-4.77%) ⬇️
stonesoup/writer/yaml.py 90.00% <100.00%> (ø)

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 94b6c0e...7c5fe40. Read the comment docs.

@sdhiscocks
Copy link
Member Author

Not sure how to go about testing entry points part of this PR, but I can confirm I've tested locally, to ensure plugin aspect functions.

@sdhiscocks sdhiscocks marked this pull request as ready for review August 18, 2021 12:14
@sdhiscocks sdhiscocks requested a review from a team as a code owner August 18, 2021 12:14
@sdhiscocks sdhiscocks requested review from jswright-dstl and idorrington-dstl and removed request for a team August 18, 2021 12:14
@sdhiscocks sdhiscocks merged commit 1ec7db2 into main Oct 12, 2021
@sdhiscocks sdhiscocks deleted the yaml_plugin branch October 12, 2021 12:21
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