Skip to content

Commit 5f742c5

Browse files
committed
Fix representation checks in distance profile tests and update CI workflow configuration
1 parent 7c163bd commit 5f742c5

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.github/workflows/CI.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55
branches:
66
- main
77
pull_request:
8+
workflow_call:
89

910

1011
permissions:

braintools/init/_distance_impl_test.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def test_repr(self):
9090
profile = GaussianProfile(sigma=50.0 * u.um, max_distance=200.0 * u.um)
9191
repr_str = repr(profile)
9292
self.assertIn('GaussianProfile', repr_str)
93-
self.assertIn('50.0', repr_str)
93+
self.assertIn('50', repr_str)
9494

9595

9696
class TestExponentialProfile(unittest.TestCase):
@@ -378,7 +378,7 @@ def test_repr(self):
378378
profile = SigmoidProfile(midpoint=100.0 * u.um, slope=0.05, max_distance=300.0 * u.um)
379379
repr_str = repr(profile)
380380
self.assertIn('SigmoidProfile', repr_str)
381-
self.assertIn('100.0', repr_str)
381+
self.assertIn('100', repr_str)
382382

383383

384384
class TestDoGProfile(unittest.TestCase):
@@ -752,4 +752,4 @@ def test_repr(self):
752752
profile = MexicanHatProfile(sigma=50.0 * u.um, amplitude=1.0, max_distance=300.0 * u.um)
753753
repr_str = repr(profile)
754754
self.assertIn('MexicanHatProfile', repr_str)
755-
self.assertIn('50.0', repr_str)
755+
self.assertIn('50', repr_str)

0 commit comments

Comments
 (0)