Skip to content

Zreference possible bug #38

@m-far

Description

@m-far

When using the following command:
sentioProber.probe.get_probe_z(ProbePosition.West, ZReference.Contact)
I get the following error:
ProberException: Can't convert argument 2 to ReferenceZ (accepted values: Contact,Separation,Hover,Zero,Current,VCE01,VCE02,Ready,RealPos)

Having said that, everything is fine with the command:
sentioProber.get_chuck_z(ref=ZReference.Contact)

Looking at an older version of the enumerations, I see that references for probe and chuck Z references were different, with the following switchers:

 switcher = {
            ProbeZReference.Zero: "Zero",
            ProbeZReference.Current: "Current",
            ProbeZReference.Contact: "Contact",
            ProbeZReference.Separation: "Separation",
        }

vs

switcher = {
            ChuckZReference.Zero: "Z",
            ChuckZReference.Relative: "R",
            ChuckZReference.Contact: "C",
            ChuckZReference.Hover: "H",
            ChuckZReference.Separation: "S",
        }

I suspect the error comes from this, assuming I'm using the commands correctly.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions