Как решить эту проблему?
Я загрузил весь пакет NiftyPet, но mmr_lmproc нигде не найден.
Ниже показано сообщение об ошибке, которое я получаю. Любая помощь будет принята с благодарностью.
Код: Выделить всё
# create histogram
mMRpars\['Cnt'\]\['BTP'\] = 0
m = nipet.mmrhist(datain, mMRpars, outpath=opth, store=True, use_stored=True)
if totCnt:
mMRpars\['Cnt'\]\['BTP'\] = 2 # enable parametric bootstrap
mMRpars\['Cnt'\]\['BTPRT'\] = totCnt / m\['psino'\].sum() # ratio count level relative to the original
m = nipet.mmrhist(datain, mMRpars, outpath=path.join(opth, 'BTP', '%.3g' % totCnt), store=True)
Traceback (most recent call last):
Cell In\[3\], line 3
m = nipet.mmrhist(datain, mMRpars, outpath=opth, store=True, use_stored=True)
File \~\\NIPET\\niftypet\\nipet\\lm\\mmrhist.py:36 in mmrhist
return hist(datain, txLUT, axLUT, Cnt, frms=frms, use_stored=use_stored, store=store,
File \~\\NIPET\\niftypet\\nipet\\lm\\mmrhist.py:58 in hist
from . import mmr_lmproc
ImportError: cannot import name 'mmr_lmproc' from 'niftypet.nipet.lm' (C:\\Users\\Dell\\NIPET\\niftypet\\nipet\\lm\__init_\_.py)
Подробнее здесь: https://stackoverflow.com/questions/790 ... t-nipet-lm