Skip to content

Add file type: SPM#33

Merged
SylviaWhittle merged 42 commits intomainfrom
SylviaWhittle/file-type-spm
May 1, 2024
Merged

Add file type: SPM#33
SylviaWhittle merged 42 commits intomainfrom
SylviaWhittle/file-type-spm

Conversation

@SylviaWhittle
Copy link
Copy Markdown
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
Copy Markdown

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
Copy Markdown
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.

Comment thread README.md Outdated
Comment thread pyproject.toml
Comment thread topofileformats/spm.py Outdated
Comment thread topofileformats/spm.py Outdated
Comment thread topofileformats/spm.py Outdated
Comment thread topofileformats/spm.py Outdated
@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
Copy Markdown
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
@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