Skip to content

Commit 19f7ba0

Browse files
committed
Fix some typos
1 parent eedee9c commit 19f7ba0

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

jitcxde_common/_jitcxde.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def __init__(self,n=None,verbose=True,module_location=None):
6767

6868
# self.compile_attempt is:
6969
# • None if no compile attempt was made
70-
# • False if a compile attempt was made but not succesful
70+
# • False if a compile attempt was made but not successful
7171
# • True if a successful compile attempt was made
7272

7373
def _check_dynvar_dict(self,dictionary,name,length):
@@ -152,7 +152,7 @@ def _check_dimension_match(self):
152152

153153
def _tmpfile(self,filename=None):
154154
"""
155-
returns the path to a file in the tempory directory associated to this instance or the directory itself (if `filename` is None). Creates the directory if necessary.
155+
returns the path to a file in the temporary directory associated to this instance or the directory itself (if `filename` is None). Creates the directory if necessary.
156156
"""
157157
if self._tmpdir is None:
158158
self._tmpdir = TemporaryDirectory(

tests/test_symbolic.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,16 +71,16 @@ def test_no_function(self):
7171

7272
class TestConditional(unittest.TestCase):
7373
def test_number_input(self):
74-
for obs,thr,v_if,v_else,result in conditional_test_cases:
74+
for obs,thresh,v_if,v_else,result in conditional_test_cases:
7575
self.assertAlmostEqual(
76-
float(conditional(obs,thr,v_if,v_else)),
76+
float(conditional(obs,thresh,v_if,v_else)),
7777
result,
7878
)
7979

8080
def test_symbolic_threshold(self):
81-
for obs,thr,v_if,v_else,result in conditional_test_cases:
81+
for obs,thresh,v_if,v_else,result in conditional_test_cases:
8282
self.assertAlmostEqual(
83-
float(conditional(obs,a,v_if,v_else).subs({a:thr})),
83+
float(conditional(obs,a,v_if,v_else).subs({a:thresh})),
8484
result,
8585
)
8686

tests/test_transversal.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def test_missing_indices(self):
8282
with self.assertRaises(AssertionError):
8383
GroupHandler(groups)
8484

85-
def test_duplicte_indices(self):
85+
def test_duplicate_indices(self):
8686
groups = [(0,1),(1,2,3,4)]
8787
with self.assertRaises(AssertionError):
8888
GroupHandler(groups)

0 commit comments

Comments
 (0)