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: Use to_writer/from_reader across the codebase #3443

Merged
merged 1 commit into from
Dec 19, 2024

Conversation

luizirber
Copy link
Member

Mostly to limit assumption that a MinHash/Signature is a JSON file, so we can control better for possible format changes. Since all calls go thru to_writer/from_reader now we can change/support versioned formats at these method boundaries.

Copy link

codecov bot commented Dec 19, 2024

Codecov Report

Attention: Patch coverage is 59.25926% with 11 lines in your changes missing coverage. Please review.

Project coverage is 86.38%. Comparing base (f4f5187) to head (32950d7).
Report is 1 commits behind head on latest.

Files with missing lines Patch % Lines
src/core/src/ffi/signature.rs 0.00% 4 Missing ⚠️
src/core/src/sketch/minhash.rs 71.42% 4 Missing ⚠️
src/core/src/signature.rs 0.00% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           latest    #3443      +/-   ##
==========================================
- Coverage   86.42%   86.38%   -0.05%     
==========================================
  Files         137      137              
  Lines       16106    16125      +19     
  Branches     2219     2219              
==========================================
+ Hits        13920    13929       +9     
- Misses       1879     1889      +10     
  Partials      307      307              
Flag Coverage Δ
hypothesis-py 25.43% <ø> (ø)
python 92.40% <ø> (ø)
rust 62.06% <59.25%> (-0.09%) ⬇️

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.

@luizirber luizirber force-pushed the lirber/sig_from_reader branch from 8fe5104 to 32950d7 Compare December 19, 2024 19:02
@luizirber luizirber requested a review from a team December 19, 2024 19:51
@luizirber
Copy link
Member Author

Ready for review @sourmash-bio/devs

Copy link
Contributor

@bluegenes bluegenes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this lgtm!

@ctb
Copy link
Contributor

ctb commented Dec 19, 2024

👍

@luizirber luizirber merged commit b69c960 into latest Dec 19, 2024
42 of 44 checks passed
@luizirber luizirber deleted the lirber/sig_from_reader branch December 19, 2024 21:29
ctb added a commit that referenced this pull request Dec 20, 2024
## [0.18.0] - 2024-12-20

MSRV: 1.66

Changes/additions:

* add skipmer capacity to sourmash python layer via ffi (#3446)
* add skipmers; switch to reading frame approach for translation,
skipmers (#3395)
* Refactor: Use to_writer/from_reader across the codebase (#3443)
* adjust `Signature::name()` to return `Option<String>` instead of
`filename()` and `md5sum()` (#3434)
* propagate zipfile errors (#3431)

Updates:

* Bump proptest from 1.5.0 to 1.6.0 (#3437)
* Bump roaring from 0.10.8 to 0.10.9 (#3438)
* Bump serde from 1.0.215 to 1.0.216 (#3436)
* Bump statrs from 0.17.1 to 0.18.0 (#3426)
* Bump roaring from 0.10.7 to 0.10.8 (#3423)
* Bump needletail from 0.6.0 to 0.6.1 (#3427)
* Bump web-sys from 0.3.72 to 0.3.74 (#3411)
* Bump js-sys from 0.3.72 to 0.3.74 (#3412)
* Bump roaring from 0.10.6 to 0.10.7 (#3413)
* Bump serde_json from 1.0.132 to 1.0.133 (#3402)
* Bump serde from 1.0.214 to 1.0.215 (#3403)
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.

3 participants