def _ignore_zeros_average(array):
    i_num=0
    f_sum=0
    for var in array:
        if var!=0:
            i_num=i_num+1
            f_sum=f_sum+var
    if i_num==0:
        i_num=1
    return f_sum/i_num
@summary internal function computes average ignoring zero elements
dataset/ETHPy150Open QuantSoftware/QuantSoftwareToolkit/QSTK/qstktools/csv2fund.py/_ignore_zeros_average