Python command: Standard DMS

The Standard DMS commands in Python allow you to read or write DMS standards and set various attributes for it.

See Python commands for other commands you can use with GainSeeker.

Syntax

Example

Description/Remarks

New or changed in GainSeeker version

stddms.acceptable

stddms.yieldmode = True
stddms.goal = 98.6
stddms.acceptable = 96.2

Sets the standard to use Yield limits (Goal and Acceptable) instead of Gate limits. Then sets the Goal Yield % and Acceptable Yield % for the standard.

Gets/Sets the Acceptable Yield % for the standard.

This value can be cleared using stddms.acceptable = None

8.9

stddms.dpudate

stddms.dpudate = "8/15/2000"

Gets/Sets the DPU Date of the process.

Acceptable date formats include "May 15 2015", "2015/5/15", "5/15/2015", "20150515" and dates returned by hsidate

This value can be cleared using stddms.dpudate = ""

 

stddms.dpuvalue

print stddms.dpuvalue

Gets/Sets the DPU Value of the process.

This value can be cleared using stddms.dpuvalue = None.

 

stddms.exists(part, process)

if stddms.exists("A-50 INSERT", "M-CUT OFF"):
    print "Valid standard"

Returns True if the specified part number and process pair exists. Otherwise it returns False.

 

stddms.getalldefectidsforproc()

internalIDList= stddms.getalldefectidsforproc()

Returns the list of internal defect IDs for the current process.

 

stddms.getalldefectlabelsforproc()

defectList = stddms.getalldefectidsforproc()

Returns the list of defect labels for the current process.

 

stddms.getprioritylist()

stddms.getprioritylist()

Returns the priority list of DMS standards for the currently logged-in user.

The return value is a list of DMS standards, where each DMS standard is a list of [part number, process]. Thus, the return value is a list of lists.

If the current user does not have a priority list of DMS standards, this returns an empty list.

9.2

stddms.goal

stddms.yieldmode = True
stddms.goal = 98.6
stddms.acceptable = 96.2

Sets the standard to use Yield limits (Goal and Acceptable) instead of Gate limits. Then sets the Goal Yield % and Acceptable Yield % for the standard.

Gets/Sets the Goal Yield % for the standard.

This value can be cleared using stddms.goal = None

8.9

stddms.loadproc(process)

stddms.loadproc("M-CUT OFF")

Loads all information for the specified process. This does not reset any of the previously set part number information.

 

stddms.loadstd(part, process)

if stddms.exists("A-50 INSERT", "M-CUT OFF"):
    stddms.loadstd("A-50 INSERT", "M-CUT OFF")

Loads all part number and process information for the specified part number and process pair. This resets all previously set values.

 

stddms.lowergate

stddms.lowergate = 5

Gets/Sets the low gate of the part number.

This value can be cleared using stddms.lowergate = None

 

stddms.memo

stddms.memo = "My Memo"

Gets/Sets the memo of the process.

Character length is maximum 80 characters. Characters over that amount are truncated.

 

stddms.ncucost

stddms.ncucost = .75

Gets/Sets the NCU Cost of the part number.

 

stddms.numopp

stddms.numopp = 2

Gets/Sets the number of opportunities of the part number.

 

stddms.partno

stddms.partno = "My Part"

Gets/Sets the name of the part number of the standard.

Note: This does not load any information about the part number if the part number already exists.

Character length is maximum 30 characters. Characters over that amount are truncated.

 

stddms.process

stddms.process = "My Process"

Gets/Sets the name of the process of the standard.

Note: This does not load any information about the process if the process already exists.

Character length is maximum 14 characters. Characters over that amount are truncated.

 

stddms.reset()

stddms.reset()

Clears all information for the current dmsstd. This does not affect any database records.

Note: This also clears the part number and process names.

 

stddms.samplesize

stddms.samplesize = 400

Gets/Sets the sample size of the part number.

This value can be cleared using stddms.samplesize = None

 

stddms.storestd()

stddms.storestd()

Inserts or updates the current part number, process, and all associated properties in the GainSeeker database. Returns True if the store is successful. Otherwise returns False.

The process is also inserted or updated if the standard was successfully created or updated.

 

stddms.uppergate

stddms.uppergate = 20

Gets/Sets the high gate of the part number.

This value can be cleared using stddms.uppergate = None

 

stddms.yieldmode

stddms.yieldmode = True
stddms.goal = 98.6
stddms.acceptable = 96.2

Sets the standard to use Yield limits (Goal and Acceptable) instead of Gate limits. Then sets the Goal Yield % and Acceptable Yield % for the standard.

Gets/Sets whether the standard uses Gate limits or Yield limits.

If set to False (the default), uses Gate limits.

If set to True, uses Yield limits.

8.9