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

BUG: Loading non-polygon ROIs on Python3 #135

Merged
merged 15 commits into from May 22, 2020

Conversation

scottclowe
Copy link
Member

@scottclowe scottclowe commented May 22, 2020

All ROI types which possess x, y and n attributes are handled in
the same way as a polygon ROI, constructing a polygon using the
points supplied.
ROI types "freehand", "freeline", "multipoint", "point", "polygon",
"polyline", and "trace" are now handled correctly.
Co-ordinates in ImageJ have top at 0, so it should be
bottom = top + height. Previously it was as if bottom was at 0,
and the result was incorrect polygon y co-ordinates.
When we use `np.assert_all_close` using `self.assertEqual` as
declared with `addTypeEqualityFunc`, it is passed a `msg` argument
which `np.assert_all_close` doesn't accept. So we need to
ferry this argument away.
For checking two dictionaries of numpy.ndarrays are the same.
This is when the rotation argument was added to
skimage.draw.ellipse.
We don't deal with the potential superresolution in the
pixel locations, and so the output is incorrect.
@codecov
Copy link

codecov bot commented May 22, 2020

Codecov Report

Merging #135 into master will increase coverage by 11.55%.
The diff coverage is 98.07%.

Impacted file tree graph

@@             Coverage Diff             @@
##           master     #135       +/-   ##
===========================================
+ Coverage   80.40%   91.95%   +11.55%     
===========================================
  Files           9        9               
  Lines         740      771       +31     
  Branches      139      151       +12     
===========================================
+ Hits          595      709      +114     
+ Misses        109       33       -76     
+ Partials       36       29        -7     
Impacted Files Coverage Δ
fissa/readimagejrois.py 89.69% <98.07%> (+38.54%) ⬆️
fissa/deltaf.py 100.00% <0.00%> (ø)
fissa/core.py 94.80% <0.00%> (+0.28%) ⬆️
fissa/neuropil.py 91.42% <0.00%> (+23.86%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 37f6133...86258a2. Read the comment docs.

@scottclowe scottclowe merged commit 24b49d2 into rochefort-lab:master May 22, 2020
@scottclowe scottclowe deleted the bug_py3-rois branch May 22, 2020 16:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Loading Oval ROIs on Python 3
1 participant