-
Notifications
You must be signed in to change notification settings - Fork 76
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
TST: Fix CI in v4.1.x branch #3376
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## v4.1.x #3376 +/- ##
==========================================
- Coverage 88.11% 88.10% -0.01%
==========================================
Files 127 127
Lines 19574 19578 +4
==========================================
+ Hits 17248 17250 +2
- Misses 2326 2328 +2 ☔ View full report in Codecov by Sentry. |
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.
looks good!
i looked for any cases of strings as units that were uncovered by tests and i couldn't find any, so this seems like all of it.
@@ -369,7 +369,7 @@ def _uncertainty(result): | |||
self.update_results(None) | |||
return | |||
# When flux is equivalent to Jy, lineflux result should be shown in W/m2 | |||
if flux_unit.is_equivalent(u.Unit('W/(m2 m)'/solid_angle_in_flux_unit)): | |||
if flux_unit.is_equivalent(u.W / (u.m * u.m * u.m * solid_angle_in_flux_unit)): |
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.
just curious, why this swap here? there are many cases of creating units from strings that aren't changed (or possible to change, i think). is this preferred when possible?
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 didn't comb through the whole package but I change it when I see it in the diff. There is no reason to incur extra overhead of string parsing if you already know what you want.
Thanks for the review! |
🐱