Skip to content

Commit

Permalink
Merge pull request #4 from Imraj-Singh/read_write_functions
Browse files Browse the repository at this point in the history
being a good dev ;)
  • Loading branch information
gschramm authored Nov 14, 2023
2 parents 1e422b8 + a65f396 commit 23d9ae9
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Binary file added data/SL.npy
Binary file not shown.
2 changes: 1 addition & 1 deletion python/demo_read_reconstruct.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
# ----------------------------------------------------------------------------

recon = np.ones(img_shape, dtype=np.float32, device=dev)
img = np.tile(np.load("../SL.npy")[..., None], (1, 1, 4))
img = np.tile(np.load("../data/SL.npy")[..., None], (1, 1, 4))
num_iter = 2
num_subsets = 20
for it in range(num_iter):
Expand Down
4 changes: 2 additions & 2 deletions python/demo_write.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
expected_num_trues = 1e6
num_iter = 2
num_subsets = 20
np.random.seed(1)
np.random.seed(42)

# ----------------------------------------------------------------------------
# ----------------------------------------------------------------------------
Expand Down Expand Up @@ -48,7 +48,7 @@
n0, n1, n2 = img_shape

# setup an image containing a box
img = np.tile(np.load("../SL.npy")[..., None], (1, 1, 4))
img = np.tile(np.load("../data/SL.npy")[..., None], (1, 1, 4))

# ----------------------------------------------------------------------------
# ----------------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion python/io_yardl.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from __future__ import annotations
import sys

sys.path.append("/workspaces/LMSimRecon/PETSIRD/python")
sys.path.append("../PETSIRD/python")
import prd
import numpy as np

Expand Down

0 comments on commit 23d9ae9

Please sign in to comment.