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

Error: NameError: name 'approach' is not defined #3

Open
ampaschoal opened this issue Oct 23, 2024 · 0 comments
Open

Error: NameError: name 'approach' is not defined #3

ampaschoal opened this issue Oct 23, 2024 · 0 comments

Comments

@ampaschoal
Copy link

Hi,

I'm trying to run the ivim_fitting but I'm facing the following error. Does anyone know how to fix it?

multiprocessing.pool.RemoteTraceback:
"""
Traceback (most recent call last):
File "/opt/homebrew/Cellar/[email protected]/3.13.0_1/Frameworks/Python.framework/Versions/3.13/lib/python3.13/multiprocessing/pool.py", line 125, in worker
result = (True, func(*args, **kwds))
~~~~^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/[email protected]/3.13.0_1/Frameworks/Python.framework/Versions/3.13/lib/python3.13/multiprocessing/pool.py", line 48, in mapstar
return list(map(*args))
File "/Users/ampaschoal/ivim-toolbox-master/ivim_fitting.py", line 1060, in fit_warpper
if approach == '1pool_separate':
^^^^^^^^
NameError: name 'approach' is not defined
"""

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/Users/ampaschoal/ivim-toolbox-master/ivim_fitting.py", line 1111, in
main(dwi_fname=args.dwi_fname, bval_fname=args.bval_fname, mask_fname=args.mask_fname, model=args.model, ofolder=args.ofolder, multithreading=bool(int(args.multithreading)))
~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/ampaschoal/ivim-toolbox-master/ivim_fitting.py", line 112, in main
ivim_fit.run_fit()
~~~~~~~~~~~~~~~~^^
File "/Users/ampaschoal/ivim-toolbox-master/ivim_fitting.py", line 75, in run_fit
self.ivim_metrics_all_voxels = pool.map(fit_warpper, fit_func_args)
~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/[email protected]/3.13.0_1/Frameworks/Python.framework/Versions/3.13/lib/python3.13/multiprocessing/pool.py", line 367, in map
return self._map_async(func, iterable, mapstar, chunksize).get()
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "/opt/homebrew/Cellar/[email protected]/3.13.0_1/Frameworks/Python.framework/Versions/3.13/lib/python3.13/multiprocessing/pool.py", line 774, in get
raise self._value
NameError: name 'approach' is not defined

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