Skip to content

Nimp got float number and fails during index calculation of imp[Nimp - 11:Nimp] in powerGain() #68

@ldpgh

Description

@ldpgh

File "....\lib\site-packages\deltasigma_predictSNR.py", line 245, in powerGain
if np.sum(abs(imp[Nimp - 11:Nimp])) < 1e-08 and Nimp > 50:
TypeError: slice indices must be integers or None or have an index method

Nimp gets float number at fail during index calculation of imp[Nimp - 11:Nimp] in powerGain()

Nimp=77.0 ... but an integer is required.

File "....\lib\site-packages\deltasigma_predictSNR.py", line 246, in powerGain
should be Nimp = int(np.round(Nimp/1.3))
^^

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions