question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TST: Table data type comparison fails with numpy-dev

See original GitHub issue

These are new failures, probably from numpy-dev, which is now 1.21.dev after the release of 1.20.

One example (others are variants of such comparisons):

>       assert col.dtype == dtype_expected
E       AssertionError: assert dtype('O') == dtype('S1')
E        +  where dtype('O') = <MaskedColumn name='col0' dtype='object' length=8>\n 0\n 1\n 2\n 3\n 4\n 5\n 6\n--.dtype

Affected tests:

  • astropy/table/tests/test_masked.py::TestTableInit::test_init_from_sequence_data_numeric_untyped[shape0-S]
  • astropy/table/tests/test_masked.py::TestTableInit::test_init_from_sequence_data_numeric_untyped[shape0-U]
  • astropy/table/tests/test_masked.py::TestTableInit::test_init_from_sequence_data_numeric_untyped[shape1-S]
  • astropy/table/tests/test_masked.py::TestTableInit::test_init_from_sequence_data_numeric_untyped[shape1-U]
  • astropy/table/tests/test_masked.py::TestTableInit::test_init_from_sequence_data_numeric_untyped[shape2-S]
  • astropy/table/tests/test_masked.py::TestTableInit::test_init_from_sequence_data_numeric_untyped[shape2-U]
  • astropy/table/tests/test_pprint.py::test_html_escaping
  • docs/table/masking.rst::masking.rst

Is this a matter of updating the expected results, or is there some compatibility bug to be fixed – @mhvk or @taldcroft ?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:12 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
taldcroftcommented, Feb 16, 2021

See https://github.com/numpy/numpy/issues/18425. I’m marking this as upstream fix needed. If they can’t fix it then we will need to do some deeper changes to Table code. I’d suggest closing #11318.

1reaction
mhvkcommented, Feb 1, 2021

Very weird indeed! Hopefully it will auto-fix in a week or so…

Read more comments on GitHub >

github_iconTop Results From Across the Web

TST: VisibleDeprecationWarning causing numpy-dev failures
This just started happening, so I suspect it is due to numpy/numpy#15119 (NEP 34), causing the following failures in the numpy-dev job that ......
Read more >
FutureWarning: elementwise comparison failed; returning ...
I am using Pandas 0.19.1 on Python 3. I am getting a warning on these lines of code. I'm trying to get a...
Read more >
Data Analysis with Python
Introduction. Data Analysis is process of extracting information from raw data. It aims to build a model with predictive power.
Read more >
PEP 485 – A Function for testing approximate equality
If, for a given use case, a user needs to compare to zero, the test will be guaranteed to fail the first time,...
Read more >
ufunc 'bitwise_and' not supported for the input types
You get the error because bitwise and is not defined for a floating point ... Then if compare by isin output is condition...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found