cabouman / mbircone

BSD 3-Clause "New" or "Revised" License
11 stars 9 forks source link

Pass wrong lib_path to _gen_sysmatrix_fname() in both recon() and project() #12

Closed DamonLee5 closed 3 years ago

DamonLee5 commented 3 years ago

Description

__lib_path, the default sysmatrix path, pass to _gen_sysmatrix_fname() in two functions. Users cannot put a sysmatrix in another folder. We should pass lib_path to _gen_sysmatrix_fname() instead.

Details

In recon(), sysmatrix_fname = _gen_sysmatrix_fname(lib_path=__lib_path, sysmatrix_name=hash_val[:__namelen_sysmatrix])

In project(), sysmatrix_fname = _gen_sysmatrix_fname(lib_path=__lib_path, sysmatrix_name=hash_val[:__namelen_sysmatrix])