-
Notifications
You must be signed in to change notification settings - Fork 54
respect dtypes of input file #557
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
Conversation
|
Nice, thank you! Would it be possible add a simple test to ensure the dtypes are propagated? |
|
Yes. I'll try :) |
|
It looks good, but the test actually fails... Does it work for you locally? |
|
Yes, also just noticed. Was a premature push. i did not think about the rearranged pixels after calling |
|
Fixed it by simply leaving the chromosome order as is and just checking if dtypes are equal. This now passes locally and I also fails when dtypes are not equal |
tests/test_rearrange_cooler.py
Outdated
| assert np.array_equal(old_trans_m, reordered_inverted_trans_m, equal_nan=True) | ||
|
|
||
| # IV. | ||
| # Check that pixel datatypes are propagted to output cooler |
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.
propagAted
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.
thanks for pointing this out. already fixed it
|
Thanks for the review and sorry for the inability to type straight^^ |
|
haha no worries! Thank you for the PR, I'll merge it! |
|
Great :) Always happy to help making the ecosystem better ;). Have a nice day |
This is a fix for #556