diff --git a/barrOs_library.py b/barrOs_library.py index deda67759480a4688e92dea8e404cc71724c0abc..07a1c901d31d6bab0a3712d73bce063a983bfb82 100644 --- a/barrOs_library.py +++ b/barrOs_library.py @@ -2374,10 +2374,14 @@ def run_barros(arguments, offset = 1, step = 2, local_angle_threshold = 25, dist # calculate the shear number print(" ... ... Computing the shear number") - shear = shear_number(barrel_struct, show_path = False) - if shear is not None: - print(' ... ... ... Shear: {}'.format(shear)) - else: + try: + shear = shear_number(barrel_struct, show_path = False) + if shear is not None: + print(' ... ... ... Shear: {}'.format(shear)) + else: + print(' ... ... ... Error: Not possible to compute the shear number') + except: + shear = None print(' ... ... ... Error: Not possible to compute the shear number') # calculate a (the distance between two adjacent CA assuming they are in the same line defined by the strand)