gcc-nmf icon indicating copy to clipboard operation
gcc-nmf copied to clipboard

gccNMF model

Open xingdonw opened this issue 6 years ago • 1 comments

hi I try to run the file "runGccNMF.py", it shows "No module named 'gccNMF'". I'm not sure how to fix this problem, if you can, please tell me the method to solve this problem.

best

xingdonw avatar Jun 26 '18 09:06 xingdonw

Hi, I have the same problem, it occurs because the folder gccNMF is in a different folder. you need to make two changes:

  1. in the main code file that you want to execute e.g. "runGccNMF.py", replace these lines:

from gccNMF.gccNMFFunctions import * from gccNMF.gccNMFPlotting import * with these: import sys sys.path.append('../gccNMF') from gccNMFFunctions import * from gccNMFPlotting import * 2. Now go to the gccNMF folder and remove each "gccNMF" from the import lines for each file. that is work for me.

Jalal-Abdulbaqi avatar Dec 29 '18 19:12 Jalal-Abdulbaqi