Skip to content

Commit be7a32b

Browse files
committed
fix(ci): resolve institutional formatting/linting fractures in math core
1 parent c6c0c1b commit be7a32b

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

src/nrc/math/qrt.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,12 @@
1616
PI = math.pi
1717

1818

19+
try:
20+
import torch
21+
except ImportError:
22+
torch = None # type: ignore
23+
24+
1925
def qrt_damping(
2026
x: Union[float, np.ndarray, "torch.Tensor"],
2127
) -> Union[float, np.ndarray, "torch.Tensor"]:

src/nrc/math/tupt_exclusion.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def apply_exclusion_gate(values: Union[int, float, np.ndarray]) -> Union[int, fl
5353
| (mod_vals_torch == 6)
5454
| (mod_vals_torch == 9)
5555
)
56-
return torch.where(mask == False, values, values.new_zeros(values.shape))
56+
return torch.where(~mask, values, values.new_zeros(values.shape))
5757

5858

5959
# TUPT Chaotic Pattern Anchor

0 commit comments

Comments
 (0)