The ENFORCE_CHECK on line 190 of calcfunctions.py can be removed. It was intended to help users identify odd parameter inputs, but this is no longer necessary with the ParamTools validation being used. It is also an issue when evaluating the cost of capital under high inflationary environments because the cost of capital is more likely to be negative in this case.
The
ENFORCE_CHECK
on line 190 ofcalcfunctions.py
can be removed. It was intended to help users identify odd parameter inputs, but this is no longer necessary with the ParamTools validation being used. It is also an issue when evaluating the cost of capital under high inflationary environments because the cost of capital is more likely to be negative in this case.