Skip to content

Commit

Permalink
REF: Revert unrelated changes
Browse files Browse the repository at this point in the history
  • Loading branch information
carterbox committed May 28, 2024
1 parent 0efb364 commit 48b62a3
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 533 deletions.
1 change: 0 additions & 1 deletion src/tike/operators/cupy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
from .pad import *
from .patch import *
from .propagation import *
from .fresnelspectprop import *
from .multislice import *
from .ptycho import *
from .rotate import *
Expand Down
143 changes: 0 additions & 143 deletions src/tike/operators/cupy/fresnelspectprop.py

This file was deleted.

2 changes: 1 addition & 1 deletion src/tike/operators/cupy/multislice.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def __init__(
nslices: int = 1,
**kwargs,
):
"""Please see help(SingleSlice) for more info."""
"""Please see help(Multislice) for more info."""
self.diffraction = diffraction(
probe_shape=probe_shape,
detector_shape=detector_shape,
Expand Down
Binary file not shown.
25 changes: 2 additions & 23 deletions tests/operators/test_propagation.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
import unittest

import numpy as np
from tike.operators import Propagation, FresnelSpectProp
from tike.operators import Propagation
import tike.precision

from .util import random_complex, OperatorTests

Expand Down Expand Up @@ -36,27 +37,5 @@ def setUp(self, nwaves=13, probe_shape=127):
print(self.operator)


class TestFresnelSpectrumPropagation(unittest.TestCase, OperatorTests):
"""Test the FresnelSpectProp operator."""

def setUp(self, nwaves=13, probe_shape=127):
"""Load a dataset for reconstruction."""
self.operator = FresnelSpectProp(
nwaves=nwaves,
detector_shape=probe_shape,
probe_shape=probe_shape,
)
self.operator.__enter__()
self.xp = self.operator.xp
np.random.seed(0)
self.m = self.xp.asarray(
random_complex(nwaves, probe_shape, probe_shape))
self.m_name = 'nearplane'
self.d = self.xp.asarray(
random_complex(nwaves, probe_shape, probe_shape))
self.d_name = 'farplane'
self.kwargs = {}
print(self.operator)

if __name__ == '__main__':
unittest.main()
Loading

0 comments on commit 48b62a3

Please sign in to comment.