Vous avez reçu un message "Your GitLab account has been locked ..." ? Pas d'inquiétude : lisez cet article https://docs.gricad-pages.univ-grenoble-alpes.fr/help/unlock/

Commit a4f9cc2c authored by Gustavo Pinzon's avatar Gustavo Pinzon
Browse files

Minor change to verbose registerMultiscale

parent bc2be1c5
Pipeline #49462 passed with stages
in 23 minutes and 5 seconds
......@@ -725,11 +725,13 @@ def registerMultiscale(im1, im2, binStart, binStop=1, im1mask=None, PhiInit=None
imShowProgress=imShowProgress)
if reg['returnStatus'] != 2 and not forceChangeScale:
print("spam.DIC.registerMultiscale(): binning {} did not converge (return Status = {}), not continuing".format(binLevel, reg['returnStatus']))
# Multiply up displacement and return bad result
print('Phi before:', reg['Phi'])
if verbose:
print("spam.DIC.registerMultiscale(): binning {} did not converge (return Status = {}), not continuing".format(binLevel, reg['returnStatus']))
# Multiply up displacement and return bad result
print('Phi before:', reg['Phi'])
reg['Phi'][0:3,-1] *= float(binLevel)
print('Phi after:', reg['Phi'])
if verbose:
print('Phi after:', reg['Phi'])
return reg
binLevel = int(binLevel/2)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment