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

Vector-optics birefringence reconstruction prototype #170

Merged
merged 106 commits into from
Dec 22, 2024

Conversation

talonchandler
Copy link
Collaborator

@talonchandler talonchandler commented Jun 17, 2024

This PR supports the waveOrder arXiv preprint and will precede a 2.2.0 release. It includes:

  • all of the vector-optics functionality that supports the preprint, primarily in the inplane_oriented_thick_pol3d_vector model,
  • a quick-start script in waveorder/examples/models/inplane_oriented_thick_pol3d_vector.py,
  • a new waveorder/examples/visuals/ folder with scripts that generate Green's tensor and vector transfer function visuals,
  • a revised /examples/README.md, with a new table of example types,
  • a revised README.md, with new badges (matching VisCy's), a new title figure, and new links to the preprint and PTI manuscript.

talonchandler and others added 8 commits April 23, 2024 14:25
* fix bug finding focus in stack with only one slice

* refactor for clarify

* formatting

* print -> warnings.warn

* test single-slice case

* fix test bugs

* z-scale-invariant test object

* no rescaling on output

* forward simulation takes a "brightness" - simulating real microscope

* fix example script

* add background parameter for fluorescence forward model

* test voxel-size invariance

* rename I_norm -> direct_intensity

* refactor to clarify discretization factor

* remove comment

* fix fluorescence example bug

* improved docsring

---------

Co-authored-by: Ivan Ivanov <[email protected]>
Base automatically changed from alg-dev to main July 5, 2024 20:52
waveorder/util.py Outdated Show resolved Hide resolved
waveorder/util.py Outdated Show resolved Hide resolved
examples/README.md Outdated Show resolved Hide resolved
@ziw-liu
Copy link
Contributor

ziw-liu commented Dec 20, 2024

Overall I think at least the core public API needs some documentation, even just type hints will help with future maintenance.

mattersoflight
mattersoflight previously approved these changes Dec 21, 2024
Copy link
Member

@mattersoflight mattersoflight left a comment

Choose a reason for hiding this comment

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

The PR looks great to me! I reviewed two READMEs (main and examples) and the new example: inplane_oriented_thick_pol3d_vector.py.

Minor input on example: label the spatial and channel axes in napari viewer, e.g., first axis when data is displayed is z and second axis is c. For transfer functions, the axes seem to be y, d (for data), s (for object).

@talonchandler
Copy link
Collaborator Author

Thank you both!

@mattersoflight I've addressed your comments and added axis labels (great idea).

@ziw-liu I've addressed your comments and added docstrings and type hints in the most-used APIs throughout waveorder.models and waveorder.visuals.

@talonchandler talonchandler merged commit 1451bf1 into main Dec 22, 2024
3 checks passed
@talonchandler talonchandler deleted the vector-prototype branch December 22, 2024 04:12
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