-
Notifications
You must be signed in to change notification settings - Fork 206
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
Check signal specification conflicts #2445
base: RELEASE_next_minor
Are you sure you want to change the base?
Check signal specification conflicts #2445
Conversation
f456bc8
to
12fc1a2
Compare
Any risk of this conflicting with #2434? e.g. multiple warning messages or one branch of code never being called? |
That's waiting on hyperspy/hyperspy-extensions-list#2 so hopefully there's no circular dependency!! |
…_signal_specification_conflicts # Conflicts: # hyperspy/io.py
|
||
if not isinstance(signal_dimension, int): | ||
raise ValueError(f'Data type "{dtype.name}" not understood!') | ||
if not isinstance(signal_dimension, int) or signal_dimension < 0: | ||
raise ValueError("signal_dimension must be an interger") |
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.
Typo "integer". Also worth saying it must be >= 0?
Codecov Report
@@ Coverage Diff @@
## RELEASE_next_minor #2445 +/- ##
======================================================
- Coverage 74.15% 74.13% -0.02%
======================================================
Files 197 197
Lines 27889 27905 +16
Branches 6042 6046 +4
======================================================
+ Hits 20681 20688 +7
- Misses 5498 5506 +8
- Partials 1710 1711 +1
Continue to review full report at Codecov.
|
For hyperspy/hyperspy-extensions-list#3, I think when we add an package to the extension list, it would be useful to check if this package introduce signal specifications conflicts. I will add tests and update the dev guide if we agree on the approach.
Progress of the PR