UW-Hydro / tonic

A pre/post processing toolbox for hydrologic models
MIT License
20 stars 34 forks source link

issue with ait(...) not callable #78

Open kcritzsalient opened 1 year ago

kcritzsalient commented 1 year ago

Getting an error when attempting to run snow17:

            elif ((qw >= deficit) and
                  ait((qw + w_q) <= ((deficit * (1 + plwhc)) + w_qx))):
                # THEN the snow is NOT yet ripe, but ice is being melted

TypeError: 'int' object is not callable

It looks like it's trying to call ait(bool). ait is a scalar value in this context. Should ait simply be omitted here?

            elif ((qw >= deficit) and
                  ((qw + w_q) <= ((deficit * (1 + plwhc)) + w_qx))):