-
Notifications
You must be signed in to change notification settings - Fork 5
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
👌 Make result input for plot_coherent_artifact more generic #134
👌 Make result input for plot_coherent_artifact more generic #134
Conversation
Sourcery Code Quality Report❌ Merging this PR will decrease code quality in the affected files by 1.55%.
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! Help us improve this quality report! |
@@ -1,3 +1,10 @@ | |||
# isort: off | |||
# Hack around https://github.com/pydata/xarray/issues/7259 which also affects pyglotaran <= 0.7.0 | |||
import numpy # noqa |
Check notice
Code scanning / CodeQL
Unused import
# isort: off | ||
# Hack around https://github.com/pydata/xarray/issues/7259 which also affects pyglotaran <= 0.7.0 | ||
import numpy # noqa | ||
import netCDF4 # noqa |
Check notice
Code scanning / CodeQL
Unused import
Codecov ReportBase: 44.32% // Head: 43.25% // Decreases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## main #134 +/- ##
==========================================
- Coverage 44.32% 43.25% -1.08%
==========================================
Files 28 29 +1
Lines 855 904 +49
Branches 130 133 +3
==========================================
+ Hits 379 391 +12
- Misses 470 506 +36
- Partials 6 7 +1
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
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.
These are some really nice enhancements, nice work!
This PR allows the passing of
Result
and file paths as input toplot_coherent_artifact
in addition users now get a warning when passing aResult
with multiple datasets to the high level plot functions whereload_data
picks the first dataset for user convenience and to prevent crashes.Change summary
Checklist