8000 demos for AQLM 2025 by mattersoflight · Pull Request #446 · mehta-lab/waveorder · GitHub
[go: up one dir, main page]

Skip to content

demos for AQLM 2025 #446

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

Open
wants to merge 11 commits into
base: main
Choose a base branch
from
Open

demos for AQLM 2025 #446

wants to merge 11 commits into from

Conversation

mattersoflight
Copy link
Member
@mattersoflight mattersoflight commented May 2, 2025

I am adding two demos in the examples/demos/ folder. These are based on simulations on examples/maintanence folder. During AQLM, we will finetune these demos. It would make sense to turn the examples/maintenance into non-interactive tests after we merge this PR.

@talonchandler
Copy link
Collaborator

I've given these notebooks a pass, and they now run end to end locally.

The QPI simulation notebook runs on Colab, but I'm still trying to figure out iohub installation issues in Colab for the QPI experiment notebook.

@talonchandler
Copy link
Collaborator

Found a solution in !pip install iohub==0.2.0.

FYI @edyoshikun @ziw-liu, iohub==0.1.0 doesn't seem to be working with colab.

@ziw-liu
Copy link
Contributor
ziw-liu commented May 5, 2025

Found a solution in !pip install iohub==0.2.0.

FYI @edyoshikun @ziw-liu, iohub==0.1.0 doesn't seem to be working with colab.

I think the kernel needs to be restarted for the old version. But we should really update waveorder's dependencies. (#197)

@mattersoflight
Copy link
Member Author
mattersoflight commented May 5, 2025

@talonchandler, the demos via google colab worked well. I updated the phase from defocus demo to illustrate 3D OTF's magnitude and phase, which sparked good discussion.

Few observations and questions (I am getting familiar again with codebase and will continue to do so as we wrap up the paper):

  • QLIPP reconstruction is done through waveorder_simulator.waveorder_microscopy_simulator, which appears to be the code path from earlier (PTI submission). Should we switch to using waveorder.models.inplane_oriented_thick_pol3d_vector?
  • Is the code for inverse filter shared across above demos?

@mattersoflight
Copy link
Member Author

@talonchandler why do we pin iohub to 0.1.0?

This cell shows this error - but the notebook runs fine.

import sys
import subprocess

# Install latest waveorder from main branch
subprocess.check_call(
    [
        sys.executable,
        "-m",
        "pip",
        "install",
        "git+https://github.com/mehta-lab/waveorder.git@main",
    ]
)
!pip install iohub==0.2.0
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
waveorder 2.2.2.dev1378+g8315e00 requires iohub==0.1.0, but you have iohub 0.2.0 which is incompatible.
waveorder 2.2.2.dev1378+g8315e00 requires pydantic==1.10.19, but you have pydantic 2.11.4 which is incompatible.
Successfully installed iohub-0.2.0 numcodecs-0.15.1 pydantic-2.11.4 pydantic_extra_types-2.10.4 tifffile-2025.3.30 zarr-2.18.7

retardance, azimuth = setup.Birefringence_recon_2D(
S1_stack, S2_stack, method="Tikhonov", reg_br=1e-2
)

Copy link
Member Author

Choose a reason for hiding this comment

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

Add a block on phase reconstruction as well.

Copy link
Member Author

Choose a reason for hiding this comment

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

Perhaps using waveorder.models.inplane_oriented_thick_pol3d_vector

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.

3 participants
0