Is your feature request related to a problem? Please describe.
When the user passes aggregates to the ipfn class that contain any 0-valued elements the algorithm performs as expected but prints a warning to the console. This can become excessive when running many IPFs.
ipfn\ipfn.py:146: RuntimeWarning: invalid value encountered in scalar divide if abs(m_ijk / ori_ijk - 1) > max_conv:
If verbose=0 the RuntimeWarning should not be printed to the console. This will require edits to lines 146 and 246 in ipfn/ipfn.py.
Describe alternatives you've considered
Could potentially implement a messages flag separately from the verbose input but many other libraries use verbose to suppress messages printed to the console and/or a log file.
Additional context
These messages when printed to the console or a log file can become excessive when running many IPFs.
Is your feature request related to a problem? Please describe. When the user passes
aggregates
to theipfn
class that contain any 0-valued elements the algorithm performs as expected but prints a warning to the console. This can become excessive when running many IPFs.Describe the solution you'd like
If
verbose=0
theRuntimeWarning
should not be printed to the console. This will require edits to lines 146 and 246 inipfn/ipfn.py
.Describe alternatives you've considered Could potentially implement a
messages
flag separately from theverbose
input but many other libraries useverbose
to suppress messages printed to the console and/or a log file.Additional context These messages when printed to the console or a log file can become excessive when running many IPFs.