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

Add file type: SPM #33

Merged
merged 42 commits into from
May 1, 2024
Merged

Add file type: SPM #33

merged 42 commits into from
May 1, 2024

Conversation

SylviaWhittle
Copy link
Collaborator

@SylviaWhittle SylviaWhittle commented Apr 22, 2024

Closes #16

This PR adds SPM support.

Just basic loading of .spm files, akin to how I did .asd.

@codecov-commenter
Copy link

codecov-commenter commented Apr 22, 2024

Codecov Report

Attention: Patch coverage is 73.25581% with 23 lines in your changes are missing coverage. Please review.

Project coverage is 66.58%. Comparing base (f282c31) to head (f589f6b).
Report is 45 commits behind head on main.

Files Patch % Lines
topofileformats/spm.py 63.15% 14 Missing ⚠️
topofileformats/jpk.py 80.43% 9 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #33      +/-   ##
==========================================
+ Coverage   65.87%   66.58%   +0.71%     
==========================================
  Files           3        5       +2     
  Lines         337      413      +76     
==========================================
+ Hits          222      275      +53     
- Misses        115      138      +23     

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

@SylviaWhittle SylviaWhittle requested a review from ns-rse April 22, 2024 14:59
Copy link
Collaborator

@ns-rse ns-rse left a comment

Choose a reason for hiding this comment

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

Thanks @SylviaWhittle as with other PRs out some comments in-line.

Not sure what your plan is for integrating with TopoStats but we could likely use the "factory method" design pattern to select the correct loader based on file extensions.

README.md Outdated Show resolved Hide resolved
pyproject.toml Show resolved Hide resolved
topofileformats/spm.py Outdated Show resolved Hide resolved
topofileformats/spm.py Outdated Show resolved Hide resolved
topofileformats/spm.py Outdated Show resolved Hide resolved
topofileformats/spm.py Outdated Show resolved Hide resolved
@SylviaWhittle SylviaWhittle force-pushed the SylviaWhittle/file-type-spm branch from 0d4633c to c2fe677 Compare April 29, 2024 22:11
@SylviaWhittle SylviaWhittle requested a review from ns-rse April 30, 2024 15:35
Copy link
Collaborator

@ns-rse ns-rse left a comment

Choose a reason for hiding this comment

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

👍 Good to go.

@SylviaWhittle SylviaWhittle merged commit 6502c56 into main May 1, 2024
10 checks passed
@ns-rse ns-rse deleted the SylviaWhittle/file-type-spm branch May 2, 2024 05:36
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.

Migrate .spm support from TopoStats
3 participants