Some Python I find really hard to read
I was puzzling over this for awhile:
return 1 in afterloss and max(afterloss) > 1
What I really don’t like about that style is it’s awfully easy to misread/type as:
return 1 if afterloss and max(afterloss) > 1
which of course means something completely different.