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

Allow mean pixel value inference from int arrays, not just float #220

Merged
merged 6 commits into from
Oct 30, 2023

Conversation

TimMonko
Copy link
Contributor

  1. Now only passes None to self.pixel_values i ncsr.py if subdtype is np.bool_ rather than only collecting pixel_values when subdtype is np.float_ allowing for pixel_values to be obtained from int and uint images.
  2. add skeletonlabel to _testdata.py to have an example int array
  3. add test_skeletonlabel to test_csr.py to confirm int array behaves as expected with csr.summarize

* only pass None to self.pixel_values i ncsr.py if subdtype is np.bool_ rather than only collecting pixel_values when subdtype is np.float_ allowing for pixel_values to be obtained from int and uint images.
* add skeletonlabel to _testdata.py to have an example int array
* add test_skeletonlabel to test_csr.py to confirm int array behaves as expected with csr.summarize
@TimMonko
Copy link
Contributor Author

TimMonko commented Oct 28, 2023

Good news,: I figured out how to run pytest independently of whatever cookie cutter has helped me in the past. Bad news: I realize my changes don't pass. So I'll work on this some more to sort it out!

@TimMonko
Copy link
Contributor Author

Should be good to go now. Old tests pass, as does the new test.

@jni
Copy link
Owner

jni commented Oct 30, 2023

Brilliant, thank you! I had to push some dependency fixes because of pydantic v2 so that the tests would run on CI, but this is ready as far as I'm concerned, will merge! Thanks! 🚀

@jni jni changed the title allowing mean pixel value inference from int arrays Allow mean pixel value inference from int arrays, not just float Oct 30, 2023
@jni jni merged commit e248c51 into jni:main Oct 30, 2023
11 checks passed
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.

2 participants