-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfix.diff
More file actions
37 lines (37 loc) · 1.64 KB
/
Copy pathfix.diff
File metadata and controls
37 lines (37 loc) · 1.64 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
diff --git a/src/opensim_models/shared/contracts/preconditions.py b/src/opensim_models/shared/contracts/preconditions.py
index 7c5447e..23fa7f2 100644
--- a/src/opensim_models/shared/contracts/preconditions.py
+++ b/src/opensim_models/shared/contracts/preconditions.py
@@ -177,16 +177,22 @@
type(sequence[1]),
type(sequence[2]),
)
- if not (
- tx0 is list
- or tx0 is tuple
- or tx0 is np.ndarray
- or tx1 is list
- or tx1 is tuple
- or tx1 is np.ndarray
- or tx2 is list
- or tx2 is tuple
- or tx2 is np.ndarray
+ if (
+ (tx0 is float or tx0 is int)
+ and (tx1 is float or tx1 is int)
+ and (tx2 is float or tx2 is int)
):
return
+ elif not (
+ tx0 is list
+ or tx0 is tuple
+ or tx0 is np.ndarray
+ or tx1 is list
+ or tx1 is tuple
+ or tx1 is np.ndarray
+ or tx2 is list
+ or tx2 is tuple
+ or tx2 is np.ndarray
+ ):
+ return
else: