Skip to content

Test bug: rs and rsh swapped in test_sde.py #2613

@vfilter

Description

@vfilter

Describe the bug
In the test__fit_sandia_cocontent() unit test, we are unpacking the return values like so:

iph, io, rsh, rs, n = sde._fit_sandia_cocontent(v, i, nsvth)

However, the _fit_sandia_cocontent function returns values in this order

return iph, io, rs, rsh, n

Interestingly the test still passes, but this is likely because the values themselves in the fixture are swapped: -.232, -.2596

To Reproduce
Steps to reproduce the behavior:

  1. Manually confirm unit test of _fit_sandia_cocontent vs actual implementation

Expected behavior
Order should be correct and fixtures should be unswapped.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions