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

On-the-fly Reconstruction #393

Draft
wants to merge 196 commits into
base: live-recon-compatibility
Choose a base branch
from

Conversation

clinton-huynh
Copy link
Contributor

@clinton-huynh clinton-huynh commented Aug 3, 2023

This PR is to add the feature that will update live reconstructions onto napari during a running MDA.

NOTES:

  • Can only do phase or birefringence reconstruction.
  • This program only works for a custom micromanager build (currently on branch ometiff_getters of mehta-lab/micro-manager, which will be getting a PR).
  • Currently hard coding the paths of the transfer function, reconstructed data, configuration settings, and a temporary zarr array (for birefrigence overlay zarr).
  • Adapted only for the "Image stack file" (OME-TIFF) and "NDTiff" save formats.

How to run:

  1. Calibrate the microscope for reconstruction.
  2. Configure the settings of the MDA.
  3. Run the command python script converted_zarr_file type_of_reconstruction.
    Example: python recOrder/recOrder/scripts/listener_and_opener.py /converted.zarr birefringence

Possible Improvements:

  • Implement a way to customize the various paths in a more user friendly way.
  • Refactoring the different reconstruction types and save formats so that constant if/else checks are reduced.
  • Implement a thread pool design so that multiple reconstructions may go off and not have a single thread do all the reconstructions in a queue.

@ziw-liu ziw-liu added the enhancement New feature or request label Aug 3, 2023
@ziw-liu
Copy link
Contributor

ziw-liu commented Aug 3, 2023

Should we target the live-recon-compatibility branch instead?

@deprecated-napari-hub-preview-bot
Copy link

deprecated-napari-hub-preview-bot bot commented Aug 3, 2023

Preview page for your plugin is ready here:
https://preview.napari-hub.org/mehta-lab/recOrder/393
Updated: 2023-08-03T18:26:25.285979

@clinton-huynh clinton-huynh changed the base branch from main to live-recon-compatibility August 3, 2023 18:16
recOrder/cli/reconstruct.py Outdated Show resolved Hide resolved
@talonchandler
Copy link
Collaborator

I'm going to move this to draft, and we will almost certainly cherry pick useful snippets during the upcoming make-a-thon.

@talonchandler talonchandler marked this pull request as draft August 8, 2023 18:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants