-
Notifications
You must be signed in to change notification settings - Fork 18
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
Fix several issues with KineticImage model #612
Conversation
Codecov Report
@@ Coverage Diff @@
## main #612 +/- ##
=====================================
Coverage 77.7% 77.8%
=====================================
Files 63 63
Lines 3531 3537 +6
Branches 657 658 +1
=====================================
+ Hits 2745 2753 +8
+ Misses 661 655 -6
- Partials 125 129 +4
Continue to review full report at Codecov.
|
This pull request introduces 1 alert when merging c42a9c1 into a7bc028 - view on LGTM.com new alerts:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I found some minor consistency and overcomplexity issues.
@jsnel needs to decide on the actual impact of the changes.
glotaran/builtin/models/kinetic_image/kinetic_image_dataset_descriptor.py
Outdated
Show resolved
Hide resolved
glotaran/builtin/models/kinetic_image/kinetic_image_dataset_descriptor.py
Outdated
Show resolved
Hide resolved
glotaran/builtin/models/kinetic_image/kinetic_image_dataset_descriptor.py
Outdated
Show resolved
Hide resolved
This pull request introduces 1 alert when merging bd79d60 into 015d5c7 - view on LGTM.com new alerts:
|
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
This pull request introduces 1 alert when merging f73d244 into 015d5c7 - view on LGTM.com new alerts:
|
This pull request introduces 1 alert when merging 3485ea1 into 015d5c7 - view on LGTM.com new alerts:
|
This pull request introduces 1 alert when merging 3462c52 into 015d5c7 - view on LGTM.com new alerts:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Found another small issue, LGTM was justifiedly complaining about.
Megacomplex scales are now a property of the dataset_descriptor. They are defined per dataset per megacomplex. Fixes glotaran#606
Co-authored-by: Sebastian Weigand <s.weigand.phy@gmail.com>
…scriptor.py Co-authored-by: Sebastian Weigand <s.weigand.phy@gmail.com>
…scriptor.py Co-authored-by: Sebastian Weigand <s.weigand.phy@gmail.com>
…scriptor.py Co-authored-by: Sebastian Weigand <s.weigand.phy@gmail.com>
Accessing the matrix by key returns the parameter stored at that key, whereas in the test the full_label is used to test if combining worked.
Just enough indentation
This pull request introduces 1 alert when merging 952dafb into 0d41d63 - view on LGTM.com new alerts:
|
Rename variables to be more clear
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM ✨
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Besides a nitpicky thing with a docstring LGTM
When combining k-matrices a and b (a.combine(b)), | ||
entries in a will overwrite by corresponding entries in b. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When combining k-matrices a and b (a.combine(b)), | |
entries in a will overwrite by corresponding entries in b. | |
When combining k-matrices a and b (a.combine(b)), | |
entries in a will overwrite by corresponding entries in b. |
Sorry for being nitpicky, but this would be one less error to fix when we at some point are able to add pydocstyle.
Internal API only. User exposed attributes already had correct spelling of associated
Sourcery Code Quality Report✅ Merging this PR will increase code quality in the affected files by 0.52%.
Here are some functions in these files that still need a tune-up:
Legend and ExplanationThe emojis denote the absolute quality of the code:
The 👍 and 👎 indicate whether the quality has improved or gotten worse with this pull request. Please see our documentation here for details on how these metrics are calculated. We are actively working on this report - lots more documentation and extra metrics to come! Let us know what you think of it by mentioning @sourcery-ai in a comment. |
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM ✨
Closes #604, #605 and #606