Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 285d8356 authored by MOEBEL Emmanuel's avatar MOEBEL Emmanuel
Browse files

core, check_array_minsize : replaced =< by < in test for comparing tomosize and patchsize

parent b6980931
No related branches found
No related tags found
No related merge requests found
...@@ -82,7 +82,7 @@ class DeepFinder: ...@@ -82,7 +82,7 @@ class DeepFinder:
def check_array_minsize(self, v, varname): def check_array_minsize(self, v, varname):
lmin = v[1] # is expected to be int (e.g. patch length) lmin = v[1] # is expected to be int (e.g. patch length)
if v[0].shape[0]<=lmin and v[0].shape[1]<=lmin and v[0].shape[2]<=lmin: if v[0].shape[0] < lmin and v[0].shape[1] < lmin and v[0].shape[2] < lmin:
self.display('DeepFinder message: the array "' + varname[0] + '" has shape '+str(v[0].shape)+'. Needs to be larger than array "'+varname[1]+'", which has shape ('+str(v[1])+','+str(v[1])+','+str(v[1])+').') self.display('DeepFinder message: the array "' + varname[0] + '" has shape '+str(v[0].shape)+'. Needs to be larger than array "'+varname[1]+'", which has shape ('+str(v[1])+','+str(v[1])+','+str(v[1])+').')
sys.exit() sys.exit()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment