If passing an angle of 0 to the smear_ft function in degredations, it will attempt to return a variable that has not been defined because it is defined inside the if statement.
My current fix locally is to just remove lines 29 and 31 from the if statement, but that appears to be an unnecessary calculation at that point. so it might make more sense just to have two return statements inside if/elif statements or similar.
If passing an angle of 0 to the
smear_ft
function indegredations
, it will attempt to return a variable that has not been defined because it is defined inside the if statement.My current fix locally is to just remove lines 29 and 31 from the if statement, but that appears to be an unnecessary calculation at that point. so it might make more sense just to have two return statements inside if/elif statements or similar.