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

RuntimeWarning: overflow encountered in cast #115

Open
abnerabner opened this issue Dec 1, 2024 · 0 comments
Open

RuntimeWarning: overflow encountered in cast #115

abnerabner opened this issue Dec 1, 2024 · 0 comments

Comments

@abnerabner
Copy link

Hi, when I followed the tutorial and ran the code
tomotwin_locate.py findmax -m out/map/map.tmap -o out/locate/

The following error occured

Latest version of TomoTwin is installed :-)
start locate  cluser_0
Locate class 0:  11%|██████████████████████████                                                                                                                                                                                                                 | 1/9 [01:00<08:00, 60.01s/it]
/home/zhenglin/.conda/envs/tomotwin/lib/python3.11/site-packages/numpy/lib/function_base.py:522: RuntimeWarning: overflow encountered in cast
  scl = avg_as_array.dtype.type(a.size/avg_as_array.size)
Locate class 0:  22%|████████████████████████████████████████████████████▏                                                                                                                                                                                      | 2/9 [01:42<05:47, 49.63s/it]
/home/zhenglin/.conda/envs/tomotwin/lib/python3.11/site-packages/numpy/lib/function_base.py:522: RuntimeWarning: overflow encountered in cast
  scl = avg_as_array.dtype.type(a.size/avg_as_array.size)
Locate class 0:  44%|████████████████████████████████████████████████████████████████████████████████████████████████████████▍                                                                                                                                  | 4/9 [02:45<03:04, 36.97s/it]
/home/zhenglin/.conda/envs/tomotwin/lib/python3.11/site-packages/numpy/lib/function_base.py:522: RuntimeWarning: overflow encountered in cast
  scl = avg_as_array.dtype.type(a.size/avg_as_array.size)
Locate class 0:  56%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▌                                                                                                        | 5/9 [03:24<02:29, 37.47s/it]
/home/zhenglin/.conda/envs/tomotwin/lib/python3.11/site-packages/numpy/lib/function_base.py:522: RuntimeWarning: overflow encountered in cast
  scl = avg_as_array.dtype.type(a.size/avg_as_array.size)
Locate class 0:  56%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▌                                                                                                        | 5/9 [04:20<03:28, 52.06s/it]

and finally stoped here.

Do you have any suggestion? Thanks!

Best,
Abner.

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