Closed JinhoKim46 closed 1 year ago
I found a workaround for this problem.
In readData()
method in twix_map_obj.py
, mem was defined as mem.astype(int),
which results in int32
datatype, and int32 causes memory overflow for the large dataset.
So, I changed the line to np.int64(mem)
to increase the capacity to hold a larger dataset, and the error disappeared.
Hello,
I have the same error as #6, but for a different reason.
I saw that you modified the code in
mapVBVD.py
tocPos = cPos + int(ulDMALength)
. Since I installed themapVBVD
tool after you push this modification, mymapVBVD
module does have the modified code inmapVBVD.py
.However, I have the same error when I run
obj['']
and the error shows likeI found that the reason for this error was very large negative values in
mem
variable. Actually,mem
is passed toreadData()
intxiw_map_obj.py
from__getitem__()
with positive values, but infloat64
data type. Based on the current installation version (2023.02.20), the code at Line 638,mem = mem.astype(int)
causes memory overflow resulting in very large values.There are two screenshots showing these results.
The first one shows memory overflow, and the second is
mem
passed from__getitem()__
.How can I handle this problem?
Interestingly, the Siemens raw file contains two scans, ref scan and the main scan. When I try to extract the image for the ref scan, which is quite small data, then the error has not occurred.
Thanks a lot in advance!