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 Automatic Compliance with the format. #17

Merged
merged 2 commits into from
Dec 8, 2023
Merged

More Automatic Compliance with the format. #17

merged 2 commits into from
Dec 8, 2023

Conversation

arbCoding
Copy link
Owner

Npts, leven, iftype, data1, and data2 are all linked together as defined in the SAC format specification.

Their relationships to each other have been added to the documentation to prevent confusion.

WIth this, sac-format is now unable to create malformed sac-files due to user error.

Note that this does not mean that dependent parameters change as data changes (xminimum/xmaximum, depmen, depmin, depmax, etc... are all untouched). This decision is to avoid unnecessary computations. In the future it would be good to have functions that calculate these values, which the user can call manually.

… leven, iftype, and data2. This is reflected in the documentation under the section Setter rules. New unit-tests to complement these changes. This now means that sac-format *should not* be capable of writing corrupted sac-files due to user error. Next update will include tests to ensure it cannot output malformed sac-files due to user error.
Copy link

Coverage summary from Codacy

See diff coverage on Codacy

Coverage variation Diff coverage
+0.00% (target: -1.00%)
Coverage variation details
Coverable lines Covered lines Coverage
Common ancestor commit (a0982ec) 1196 1195 99.92%
Head commit (3370baf) 1241 (+45) 1240 (+45) 99.92% (+0.00%)

Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: <coverage of head commit> - <coverage of common ancestor commit>

Diff coverage details
Coverable lines Covered lines Diff coverage
Pull request (#17) 0 0 ∅ (not applicable)

Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: <covered lines added or modified>/<coverable lines added or modified> * 100%

See your quality gate settings    Change summary preferences

You may notice some variations in coverage metrics with the latest Coverage engine update. For more details, visit the documentation

Copy link

codecov bot commented Dec 8, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (a0982ec) 99.91% compared to head (3370baf) 99.91%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #17   +/-   ##
=======================================
  Coverage   99.91%   99.91%           
=======================================
  Files           2        2           
  Lines        1196     1241   +45     
=======================================
+ Hits         1195     1240   +45     
  Misses          1        1           

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

@arbCoding arbCoding merged commit 2ec8b36 into main Dec 8, 2023
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.

1 participant