Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/temgym_core/propagator.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from typing import NamedTuple, TYPE_CHECKING
import numpy as np
import jax_dataclasses as jdc

if TYPE_CHECKING:
from .ray import Ray
Expand Down Expand Up @@ -40,6 +41,7 @@ def __call__(self, ray: "Ray") -> "Ray":
return self.propagator(ray, self.distance)


@jdc.pytree_dataclass
class FreeSpaceParaxial(BasePropagator):
"""Paraxial free-space propagation with constant slopes.

Expand Down Expand Up @@ -76,6 +78,7 @@ def __call__(cls, ray: "Ray", distance: float):
return cls.propagate(ray, distance)


@jdc.pytree_dataclass
class FreeSpaceDirCosine(BasePropagator):
"""Free-space propagation using direction cosines (L, M, N).

Expand Down
Loading