IVALab Python Libraries
Collection of code for computer vision and robotics with specific API.
Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
StgQualityControl Class Reference

Class containing the trial settings for Quality Control experiments. More...

Public Member Functions

def trialSetting (self, trialSpec)
 Convert a raw trial specification to actual trial settings. More...
 
def trialValue (self, varName, varVal)
 From the trial settings recover the trial specification values as provided in the study CSV file. More...
 

Static Public Member Functions

def setting (theStudy, field, trial)
 Lookup a setting associated to the trial information. More...
 

Static Public Attributes

dictionary Pilot
 Quality control pilot study settings. More...
 

Detailed Description

Class containing the trial settings for Quality Control experiments.

Member Function Documentation

◆ setting()

def setting (   theStudy,
  field,
  trial 
)
static

Lookup a setting associated to the trial information.

Mostly for a setting that is indirectly recovered from trial state. Not for values actually stored in the trial state.

Parameters
[in]Thestudy dictionary.
[in]Theextra setting field to recover from trial info list.
[in]Thetrial info list.

◆ trialSetting()

def trialSetting (   self,
  trialSpec 
)

Convert a raw trial specification to actual trial settings.

Parameters
[in]varNameStudy variable name to query.
[in]valValStudy variable value.
Returns
The key value used in the CSV file to specify said setting.

◆ trialValue()

def trialValue (   self,
  varName,
  varVal 
)

From the trial settings recover the trial specification values as provided in the study CSV file.

Parameters
[in]varNameStudy variable name to query.
[in]valValStudy variable value.
Returns
The key value used in the CSV file to specify said setting.

Member Data Documentation

◆ Pilot

dictionary Pilot
static
Initial value:
= { 'numPieces' : {1 : 60, 2 : 84 , 3 : 104 , 4: 126}, # No. puzzle pieces.
'hasRobot' : {0 : False, 1 : True}, # QC robot flag.
'numErrors' : {0 : 0, 1 : 1 , 2 : 2 , 3 : 3}, # No. of errors.
'magErrors' : {1 : 0.025, 2 : 0.05}, # Mag of error (% of image)
'puzzShape' : {60 : (10,6) , 84 : (12,7), 104 : (13, 8) , 126 : (14, 9)},
'puzzSize' : (1200, 800)
}

Quality control pilot study settings.


The documentation for this class was generated from the following file: