Skip to content

Commit 7e08dae

Browse files
committed
Update psirng randn function to handle new API response format
1 parent 0bbd804 commit 7e08dae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/rng_psirng.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ def __new__(cls):
1919
def randn(self, shape):
2020
response = requests.get(f"{self.base_url}/api/randnormal?mean=0.0&stddev=1.0&length={np.prod(shape)}")
2121
response.raise_for_status()
22-
return np.array(response.json()).reshape(shape)
22+
return np.array(response.json()["data"]).reshape(shape)

0 commit comments

Comments
 (0)