Skip to content

Commit

Permalink
Rename PSFImager to microscope. (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
GJBoth authored Feb 21, 2023
1 parent 54f6815 commit c147c79
Show file tree
Hide file tree
Showing 5 changed files with 658 additions and 619 deletions.
86 changes: 57 additions & 29 deletions docs/101.ipynb

Large diffs are not rendered by default.

1,183 changes: 597 additions & 586 deletions docs/examples/holoscope.ipynb

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions examples/holoscope.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from chromatix.elements import ObjectivePointSource, PhaseMask, FFLens
from chromatix import PSFImager
from chromatix import Microscope
from chromatix.ops.noise import approximate_shot_noise
import jax.numpy as jnp
from jax import jit
Expand Down Expand Up @@ -43,7 +43,7 @@ def setup(self):
/ (self.n * shape[0] * self.camera_pixel_pitch)
)

self.model = PSFImager(
self.model = Microscope(
[
ObjectivePointSource(
shape,
Expand Down
2 changes: 1 addition & 1 deletion src/chromatix/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@


from .field import Field
from .optical_system import OpticalSystem, PSFImager
from .optical_system import OpticalSystem, Microscope
2 changes: 1 addition & 1 deletion src/chromatix/optical_system.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from typing import Callable, Sequence, Optional, Any


class PSFImager(nn.Module):
class Microscope(nn.Module):
optical_system: Sequence[Callable]
noise_fn: Optional[Callable[[PRNGKey, Array], Array]] = None
reduce_fn: Optional[Callable] = None
Expand Down

0 comments on commit c147c79

Please sign in to comment.