Skip to content

Commit 8128918

Browse files
committed
fix: style
1 parent 771d7ad commit 8128918

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,12 +114,19 @@ python -m mkl_random --with-numpy-patch -- <command> [args...]
114114

115115
```python
116116
import mkl_random
117+
import numpy
117118

118119
mkl_random.patch_numpy_random()
119120
print(mkl_random.is_patched())
121+
# run your accelerated numpy workloads here!
120122
mkl_random.restore_numpy_random()
123+
```
121124

125+
```python
126+
import mkl_random
127+
import numpy
122128
with mkl_random.mkl_random():
129+
# run your accelerated workloads here!
123130
pass
124131
```
125132

mkl_random/tests/test_cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ def test_patch_status_check_function(mock_pth_path):
9999

100100

101101
def test_install_patch_enables_runtime_patch_via_pth(mock_pth_path):
102-
"""Test that .pth activation results in patched NumPy random runtime state."""
102+
"""Test that .pth activation yields patched NumPy random runtime state."""
103103
install_patch()
104104

105105
preexisting_patch_state = mkl_random.is_patched()

0 commit comments

Comments
 (0)