Repository navigation
Bugfix: stringy physical unit types - #709
Conversation
Codecov Report
@@ Coverage Diff @@
## master #709 +/- ##
==========================================
+ Coverage 76.32% 77.48% +1.16%
==========================================
Files 24 24
Lines 5423 5557 +134
==========================================
+ Hits 4139 4306 +167
+ Misses 1284 1251 -33
Continue to review full report at Codecov.
|
01d6259 to
a1f8dba
Compare
|
Can you hold off on this as I think we should fix it in astropy |
|
Actually feel free to go ahead, but I've noted in the relevant astropy PR that this broke rather than emit a deprecation warning |
|
@astrofrog can you review this, then? Should we go ahead and merge this? I don't understand the failure. |
|
@keflavich -- More of the py38 errors we're seeing are from these string changes: Here |
|
Ahhh... I think we need changes here to accommodate |
|
We might have a few other places where this breaks things. From a local run of the py38 dev test: The errored tests are hiding a lot of actual failures. |
|
Most of the errors were from not passing the right unit conversions. Here's the upstream change for physical types: astropy/astropy#11691 Neither of the below issues are raised in the CI build. It looks like we have some additional failures from upstream changes. In case they don't show up in the build with astropy dev:
|
|
Yeah, astropy#11651 is a scipy issue, not a windows issue. It's an easy fix, but it's definitely upstream. Not sure about the other one yet. |
|
We're not getting those errors I saw locally here, so I think it's ok. Apart from the yt related failure, I think this is ready to review and merge |
|
|
||
| def parse_phys_type(unit): | ||
| ''' | ||
| As of astropy 4.3.dev1499+g5b09f9dd9, the physical type of a speed if "speed". |
There was a problem hiding this comment.
is this supposed to say is "speed", not if "speed"?
There was a problem hiding this comment.
and... isn't the problem that it was speed, and is now speed/velocity?
There was a problem hiding this comment.
Oh. I did a replace all... will fix.
|
OK, great, let's merge it - but, could you fix the docstring? Or at least clarify? |
|
@keflavich -- fixed. Good to merge from my end |
Running with the latest astropy version (a832159de617a8188310abb324c30b8cb2a3408e, 4.3.dev1429+ga832159) resulted in errors like
I think this PR will fix those.