Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PYTHON] Error when running unittest example #99

Open
aolbrech opened this issue Jul 19, 2023 · 0 comments
Open

[PYTHON] Error when running unittest example #99

aolbrech opened this issue Jul 19, 2023 · 0 comments

Comments

@aolbrech
Copy link

I am using Python 3.6.9 and have installed gpuNUFFT using pip install gpuNUFFT. Yet when I run the unit test in the Python folder using python -m unittest as suggested in the README, I get an error on the second line:

        operator = self.get_nufft_op(self.coil_maps)
        x = operator.op(np.reshape(self.img.T, self.img.size))

The error message I am getting is:

======================================================================
ERROR: test_multicoil_with_sense (test_nufftOp.TestgpuNUFFT)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/mnt/c/Users/annik.olbrechts/Documents/Circle/FRF_Project/gpuNUFFT/python/test_nufftOp.py", line 93, in test_multicoil_with_sense
    x = operator.op(np.reshape(self.img.T, self.img.size))
TypeError: op(): incompatible function arguments. The following argument types are supported:
    1. (self: gpuNUFFT.NUFFTOp, arg0: numpy.ndarray[numpy.complex64], arg1: bool) -> numpy.ndarray[numpy.complex64]

Invoked with: <gpuNUFFT.NUFFTOp object at 0x7f86ce073c70>, array([0.+0.j, 0.+0.j, 0.+0.j, ..., 0.+0.j, 0.+0.j, 0.+0.j],
      dtype=complex64)

Anyone has any experience running the Python module? I am trying to replace Matlab code by Python.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant