CERN / TIGRE

TIGRE: Tomographic Iterative GPU-based Reconstruction Toolbox
BSD 3-Clause "New" or "Revised" License
535 stars 180 forks source link

shepp_logan_3d ignores numpy arrays #432

Closed amaarquadri closed 1 year ago

amaarquadri commented 1 year ago

Expected Behavior

sl3d.shepp_logan_3d(np.array([10, 10, 10])).shape == (10, 10, 10)

Actual Behavior

sl3d.shepp_logan_3d(np.array([10, 10, 10])).shape == (128, 128, 128)

Specifications

Fix

Change np.array to np.ndarray in this line of code

AnderBiguri commented 1 year ago

Thanks for pointing this out @amaarquadri .

I can try to find some time soon to fix it, but do please feel free to make a PR to fix it yourself, if you want :)

amaarquadri commented 1 year ago

Here's the PR: https://github.com/CERN/TIGRE/pull/433