You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the htape doesn't give any residue the program doesn't understand how to continue... I suggest creating a no-result object to continue the execution.
In line 76, instead of:
residuals = [__readfeed(inputstr) for inputstr in inputstrs]
residuals = __addmetastable(residuals, inputstr2)
if residuals==[]:
print ("Did not find any residual nuclei. Are you sure this is a correct htape3x output?")
return None
I proposed to include:
if inputstrs == [[]]:
residuals = [[0, [000000], [0.0]]]
else:
residuals = [__readfeed(inputstr) for inputstr in inputstrs]
residuals = __addmetastable(residuals, inputstr2)
if residuals == [[0, [000000], [0.0]]]:
print (f"Did not find any residual nuclei in cell {ncell}. Are you sure this is a correct htape3x output?")
Besides, I would suggest changing every __ to_ to avoid messing with attributes
The text was updated successfully, but these errors were encountered:
If the htape doesn't give any residue the program doesn't understand how to continue... I suggest creating a no-result object to continue the execution.
In line 76, instead of:
residuals = [__readfeed(inputstr) for inputstr in inputstrs]
residuals = __addmetastable(residuals, inputstr2)
if residuals==[]:
print ("Did not find any residual nuclei. Are you sure this is a correct htape3x output?")
return None
I proposed to include:
if inputstrs == [[]]:
residuals = [[0, [000000], [0.0]]]
else:
residuals = [__readfeed(inputstr) for inputstr in inputstrs]
residuals = __addmetastable(residuals, inputstr2)
if residuals == [[0, [000000], [0.0]]]:
print (f"Did not find any residual nuclei in cell {ncell}. Are you sure this is a correct htape3x output?")
Besides, I would suggest changing every __ to_ to avoid messing with attributes
The text was updated successfully, but these errors were encountered: