Package gavo :: Package protocols :: Module siap :: Class SIAPCutoutCore
[frames] | no frames]

Class SIAPCutoutCore

source code

                   object --+                        
                            |                        
 base.structure.StructureBase --+                    
                                |                    
                   object --+   |                    
                            |   |                    
           base.common.Parser --+                    
                                |                    
base.structure.ParseableStructure --+                
                                    |                
             base.structure.Structure --+            
                                        |            
                           svcs.core.Core --+        
                                            |        
            svcs.standardcores.TableBasedCore --+    
                                                |    
                        svcs.standardcores.DBCore --+
                                                    |
                                                   SIAPCutoutCore

A core doing SIAP plus cutouts.

It has, by default, an additional column specifying the desired size of the image to be retrieved. Based on this, the cutout core will tweak its output table such that references to cutout images will be retrieved.

The actual process of cutting out is performed by the product core and renderer.

Nested Classes

Inherited from base.structure.StructureBase: __metaclass__

Instance Methods
 
getQueryCols(self, service, queryMeta)
returns the fields we need in the output table.
source code
 
run(self, service, inputData, queryMeta)
does the DB query and returns an InMemoryTable containing the result.
source code
 
clearProperty(self, name) source code
 
getFullId(self) source code
 
getProperty(self, name, default=<Undefined>) source code
 
hasProperty(self, name) source code
 
resolveName(instance, context, id) source code
 
setProperty(self, name, value) source code

Inherited from svcs.standardcores.DBCore: wantsTableWidget

Inherited from svcs.standardcores.TableBasedCore: adaptForRenderer, completeElement

Inherited from svcs.core.Core: __init__, __repr__, __str__, initialize, makeUserDoc

Inherited from base.structure.Structure: __provides__, callCompletedCallbacks, finishElement, onElementComplete, validate

Inherited from base.structure.ParseableStructure: end_, feed, feedFrom, feedObject, getAttribute, iterEvents, start_, value_

Inherited from base.structure.StructureBase: __providedBy__, adopt, breakCircles, change, copy, getAttributes, getCopyableAttributes, getSourcePosition, iterChildren, setPosition

Inherited from base.common.Parser: feedEvent

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __subclasshook__

Class Methods

Inherited from base.structure.StructureBase: fromStructure

Class Variables
  name_ = 'siapCutoutCore'
a sentinel for all kinds of undefined values.
  copiedCols = ['centerAlpha', 'centerDelta', 'imageTitle', 'ins...

Inherited from svcs.standardcores.DBCore: attrSeq, managedAttrs

Inherited from svcs.core.Core: inputTableXML, outputTableXML

Inherited from base.structure.Structure: __implemented__

Inherited from base.structure.StructureBase: completedCallbacks

Properties
  rd

Inherited from object: __class__

Method Details

getQueryCols(self, service, queryMeta)

source code 

returns the fields we need in the output table.

The normal DbBased core just returns whatever the service wants. Derived cores, e.g., for special protocols, could override this to make sure they have some fields in the result they depend on.

Overrides: svcs.standardcores.DBCore.getQueryCols
(inherited documentation)

run(self, service, inputData, queryMeta)

source code 

does the DB query and returns an InMemoryTable containing the result.

Overrides: svcs.core.Core.run

clearProperty(self, name)

source code 
Overrides: svcs.core.Core.clearProperty

getFullId(self)

source code 
Overrides: svcs.core.Core.getFullId

getProperty(self, name, default=<Undefined>)

source code 
Overrides: svcs.core.Core.getProperty

hasProperty(self, name)

source code 
Overrides: svcs.core.Core.hasProperty

resolveName(instance, context, id)

source code 
Overrides: svcs.standardcores.TableBasedCore.resolveName

setProperty(self, name, value)

source code 
Overrides: svcs.core.Core.setProperty

Class Variable Details

copiedCols

Value:
['centerAlpha',
 'centerDelta',
 'imageTitle',
 'instId',
 'dateObs',
 'nAxes',
 'pixelSize',
 'pixelScale',
...

Property Details

rd

Get Method:
unreachable._getRD(self)