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

Add timelapse decorator for points and surfaces #18

Merged
merged 58 commits into from
May 25, 2022

Conversation

jo-mueller
Copy link
Member

@jo-mueller jo-mueller commented May 9, 2022

This PR is a more concise version of #10 . It adds some functionality specifically to process Points and Surfaces in 4D.

Features:

  • The TimeLapseConverter class (napari_stress.TimeLapseConverter()) allows to convert data between a list format (which is handy for processing) and a single data object (which can be handled by Napari)
  • the frame_by_frame (napari_stress.frame_by_frame) decorator can be applied to functions that apply one or multiple arguments of napari layer types, currently supported are PointsData, SurfaceData, LabelsData, LayerDataTuple.
  • I added a notebook that demonstrates the usage of the time-lapse functions.

Fixes #11

@jo-mueller jo-mueller mentioned this pull request May 9, 2022
@jo-mueller
Copy link
Member Author

@haesleinhuepf @zoccoler @Cryaaa any feedback is much appreciated!

jo-mueller and others added 2 commits May 13, 2022 14:19
The time_slicer turns all images to 4D images so that three scale parameters are always right.
…ns-to-napari-hook-implementation

Expose timelapse decorated functions to napari hook implementation
Copy link
Contributor

@haesleinhuepf haesleinhuepf left a comment

Choose a reason for hiding this comment

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

Hi Johannes @jo-mueller ,

just minor things. Mostly comments about internal functions, so feel free to ignore my suggestions. I just wrote down what I thought while reading the code. If I misunderstood something, also comment could help. Feel free to merge this anyway.

Best,
Robert

src/napari_stress/_utils/fit_utils.py Outdated Show resolved Hide resolved
src/napari_stress/_utils/fit_utils.py Outdated Show resolved Hide resolved
src/napari_stress/_utils/fit_utils.py Outdated Show resolved Hide resolved
src/napari_stress/_utils/fit_utils.py Outdated Show resolved Hide resolved
src/napari_stress/_utils/fit_utils.py Outdated Show resolved Hide resolved
src/napari_stress/_utils/fit_utils.py Outdated Show resolved Hide resolved
src/napari_stress/_utils/frame_by_frame.py Outdated Show resolved Hide resolved
src/napari_stress/_utils/frame_by_frame.py Show resolved Hide resolved
src/napari_stress/_utils/frame_by_frame.py Outdated Show resolved Hide resolved
src/napari_stress/_utils/frame_by_frame.py Outdated Show resolved Hide resolved
@jo-mueller jo-mueller merged commit 7590d37 into main May 25, 2022
@jo-mueller jo-mueller deleted the add-timelapse-decorator-for-points-and-surfaces branch May 25, 2022 15:00
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.

Make decorator to support timelapse processing of napari data types
3 participants