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

Bugfix: __len__ test for beams #852

Merged
merged 2 commits into from
Mar 9, 2023
Merged

Bugfix: __len__ test for beams #852

merged 2 commits into from
Mar 9, 2023

Conversation

keflavich
Copy link
Contributor

If you write out a non-varying-spectral-resolution spectrum, it will try to load in as a VRS because the hasattr(beam, '__len__') check is true, even though there is no len.

@keflavich keflavich requested a review from e-koch March 9, 2023 12:53
If you write out a non-varying-spectral-resolution spectrum, it will try to load in as a VRS because the `hasattr(beam, '__len__')` check is true, even though there is no `len`.
@keflavich keflavich force-pushed the fix_beam_len_check branch from 5ec7a68 to 94791ea Compare March 9, 2023 13:19
@codecov-commenter
Copy link

codecov-commenter commented Mar 9, 2023

Codecov Report

Patch coverage: 100.00% and no project coverage change

Comparison is base (de97806) 77.36% compared to head (cdb2ebf) 77.36%.

📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #852   +/-   ##
=======================================
  Coverage   77.36%   77.36%           
=======================================
  Files          24       24           
  Lines        6025     6027    +2     
=======================================
+ Hits         4661     4663    +2     
  Misses       1364     1364           
Impacted Files Coverage Δ
spectral_cube/lower_dimensional_structures.py 80.69% <100.00%> (+0.07%) ⬆️

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.
📢 Do you have feedback about the report comment? Let us know in this issue.

@e-koch e-koch merged commit d004d79 into master Mar 9, 2023
@e-koch
Copy link
Contributor

e-koch commented Mar 9, 2023

Test failures are unrelated to this change. We'll fix in a separate PR (starting in #868)

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.

3 participants