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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Virtual frames and stitching #108

Draft
wants to merge 13 commits into
base: main
Choose a base branch
from

Conversation

saeedehsp
Copy link
Collaborator

@saeedehsp saeedehsp commented Mar 12, 2023

closes #xxxx

  • tests added
  • all tests pass
  • documentation
  • AUTHORS entry
  • Changelog entry

馃摎 Documentation preview 馃摎: https://morphocut--108.org.readthedocs.build/en/108/

@moi90
Copy link
Member

moi90 commented Mar 13, 2023

The changes to ecotaxa and core are unrelated to the topic of this pull request, can you please revert them?

@codecov
Copy link

codecov bot commented Mar 22, 2023

Codecov Report

Merging #108 (cb45c78) into master (945f6ee) will increase coverage by 0.54%.
The diff coverage is 86.25%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #108      +/-   ##
==========================================
+ Coverage   79.48%   80.03%   +0.54%     
==========================================
  Files          27       28       +1     
  Lines        2223     2434     +211     
  Branches      382      445      +63     
==========================================
+ Hits         1767     1948     +181     
- Misses        379      393      +14     
- Partials       77       93      +16     
Impacted Files Coverage 螖
src/morphocut/stitch.py 86.25% <86.25%> (酶)

... and 2 files with indirect coverage changes

@moi90
Copy link
Member

moi90 commented Mar 22, 2023

I merged the master branch and now the changes look clean.

@moi90 moi90 changed the title feat: add stitch class to stitch regions onto frames feat: Virtual frames and stitching Mar 22, 2023

assert isinstance(region.sum(axis=0), np.ndarray)

with pytest.raises(IndexError, match="Invalid key: .* Only slice and tuple of slice are allowed."):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You shouldn't test _validate_key (which is private) but __getitem__ and __setitem__ which make use of it.

@moi90
Copy link
Member

moi90 commented Apr 28, 2023

Thanks for this huge chunk of work! (Please excuse my brevity, the baby demands my attention;))

tests/test_stitch.py Outdated Show resolved Hide resolved
- Coverage for Region.__array_ufunc__
- Use np.testing.assert_equal
@moi90
Copy link
Member

moi90 commented Apr 29, 2023

I made a few changes to increase coverage. I think after you addressed my remark above and created the changelog entry, this PR can be merged.

@moi90 moi90 marked this pull request as draft May 8, 2023 13:50
@saeedehsp saeedehsp marked this pull request as ready for review May 9, 2023 17:58
@moi90 moi90 marked this pull request as draft May 19, 2023 14:18
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.

None yet

2 participants