Sorry, it's not an error it's just not what I would expect.
I've changed "if Tot == 1" to "if Tot == 1.0"
If in the tool GUI I set Spring = 1, Summer = 0, and Fall = 0.
Then I go into the if statement and the rest of the script runs (i get the "Sum of floral weights is equal to: 1.0 message).
This is what I would expect.
BUT if in the tool GUI I set Spring = 0.6, Summer = 0.3, and Fall = 0.1,
Then I go into the else statement and the tool stops running even though I've added a "catch message" (arcpy.AddError("The sum of floral weights must equal to one, but it is equal to " + str(Tot))) and it tells me that Tot is equal to 1.0.
What do you think?
Amelie