Skip to content

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

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))
^^

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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