Skip to content

Commit

Permalink
CLN: unused properties
Browse files Browse the repository at this point in the history
  • Loading branch information
ken-lauer committed Dec 17, 2024
1 parent 81c49a3 commit ae99fe8
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions pmd_beamphysics/wavefront.py
Original file line number Diff line number Diff line change
Expand Up @@ -1075,11 +1075,6 @@ def grid(self) -> tuple[int, ...]:
"""The rmesh shape, without padding."""
return self._grid

@property
def rmesh_shape(self) -> tuple[int, ...]:
"""The rmesh shape, without padding."""
return self._grid

@property
def pad(self) -> tuple[int, ...]:
"""
Expand Down Expand Up @@ -1121,10 +1116,6 @@ def kspace_domain(self) -> tuple[np.ndarray, ...]:
shifted=True,
)

@property
def _k_center_indices(self) -> tuple[int, ...]:
return tuple(grid // 2 + pad for grid, pad in zip(self.rmesh.shape, self.pad))

@property
def rmesh(self) -> np.ndarray:
"""Real-space (cartesian space) wavefront field data."""
Expand Down Expand Up @@ -1246,7 +1237,7 @@ def grid_spacing(self) -> tuple[float, ...]:
@property
def ranges(self):
"""
Get the physical range the entire mesh represents in (low, high) pairs
Get the physical range the entire rmesh represents in (low, high) pairs
for each dimension.
Returns
Expand Down Expand Up @@ -2173,7 +2164,7 @@ def drift(wf: Wavefront, distance: float) -> Wavefront:
# for idx, label in enumerate(wf.axis_labels)
# if label != wf.longitudinal_axis
# ]
indices = [0, 1]
indices = (0, 1)
transverse_kspace_grid = nd_kspace_mesh(
coeffs=(1.0,) * len(wf.grid),
sizes=[wf.rmesh.shape[idx] for idx in indices],
Expand Down

0 comments on commit ae99fe8

Please sign in to comment.