Skip to content

Commit ee2d7ad

Browse files
authored
linebreaks in elementwise
1 parent 77297b5 commit ee2d7ad

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed

deeptrack/test/test_aberrations.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,13 @@
1212
from ..image import Image
1313

1414

15-
1615
class TestAberrations(unittest.TestCase):
1716

18-
particle = PointParticle(position=(32, 32), position_unit="pixel", intensity=1)
17+
particle = PointParticle(
18+
position=(32, 32),
19+
position_unit="pixel",
20+
intensity=1,
21+
)
1922

2023
def testGaussianApodization(self):
2124
aberrated_optics = Fluorescence(

deeptrack/test/test_augmentations.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,13 @@ def test_Affine(self):
7070
for _ in range(10):
7171
image = pipe.update().resolve()
7272
pmax = np.unravel_index(
73-
np.argmax(image[:, :, 0], axis=None), shape=image[:, :, 0].shape
73+
np.argmax(image[:, :, 0],
74+
axis=None),
75+
shape=image[:, :, 0].shape,
7476
)
7577

76-
dist = np.sum(np.abs(np.array(image.get_property("position")) - pmax))
78+
dist = np.sum(np.abs(np.array(
79+
image.get_property("position")) - pmax))
7780

7881
self.assertLess(dist, 3)
7982

@@ -99,7 +102,8 @@ def test_ElasticTransformation(self):
99102
im[:, :, :] = 0
100103
im[0, :, :] = 1
101104
out_2 = transformer.update().resolve(im)
102-
self.assertIsNone(np.testing.assert_allclose(out_2[:, :, 0], out_2[:, :, 1]))
105+
self.assertIsNone(np.testing.assert_allclose(
106+
out_2[:, :, 0], out_2[:, :, 1]))
103107

104108
transformer.ignore_last_dim.set_value(False)
105109
out_3 = transformer.resolve(im)

0 commit comments

Comments
 (0)