Table of Contents

Class: DummyGon hwdriver/dummydrv.py

Fake KappaCCD

Base Classes   
anyhw.Driver
anyhw.SquareDetector
Methods   
Abort
BeamstopPosition
Cryo
GetAllowedCurrent
GetAllowedVoltage
GetCryo
GetGenerator
GetOmegaRange
GetOmegaRanges
GetPosition
MakeScan
MicroscopeImage
MinimizeDx
PosHardAllowed
PosSoftAllowed
RouteAllowed
SetFilename
SetGenerator
SetPosition
__init__
__repr__
  Abort 
Abort ( self )

  BeamstopPosition 
BeamstopPosition ( self )

Return lowest practical dx at theta 0.

Will always return dxmin

  Cryo 
Cryo (
        self,
        speed=120,
        goal=298,
        wait=1,
        shutdown=0,
        autocryomove=0,
        )

Set cryostat

Will always return 0 (failed)

  GetAllowedCurrent 
GetAllowedCurrent ( self,  kv )

Get tube limits; simulates 2kW tube on 590 generator

  GetAllowedVoltage 
GetAllowedVoltage ( self,  ma )

Get tube limits; simulates 2kW tube on 590 generator

  GetCryo 
GetCryo ( self )

Get cryostat status

Always says : none present.

  GetGenerator 
GetGenerator ( self )

Get the last set generator values

  GetOmegaRange 
GetOmegaRange ( self,  p )

Check what omega range can be reached from p.

parameters:

p

position for which omega ranges are requested.

return value: Since this is fake hardware, the result is None if the position can not be reached, or a 2-tuple (-180 deg,180 deg) if it can.

  GetOmegaRanges 
GetOmegaRanges ( self,  p )

Check what omega ranges can be reached from p.

parameters:

p

position for which omega ranges are requested.

return value: Since this is fake hardware, the result is None if the position (disregarding the given value of omega) can not be reached, or a 2-tuple (-180 deg,180 deg) if it can.

  GetPosition 
GetPosition ( self )

Get current position

  MakeScan 
MakeScan (
        self,
        frametime,
        numframes=1,
        phistep=0.0,
        dxstep=0.0,
        omegastep=0.0,
        kappastep=0.0,
        thetastep=0.0,
        repeats=1,
        shutter=1,
        outsink=None,
        )

Fake a scan; just pauses a few seconds.

  MicroscopeImage 
MicroscopeImage ( self )

Get a corresponding microscope image

returns None for fake hardware

  MinimizeDx 
MinimizeDx ( self,  p )

Minimize dx in the given position.

Always returns p with the dx=dxmin

  PosHardAllowed 
PosHardAllowed ( self,  p )

Verify whether p is allowed on the hardware.

Since this is fake hardware, it will just check whether angles are within normal ranges.

  PosSoftAllowed 
PosSoftAllowed ( self,  p )

Verify whether p satisfies direct limits on the angles.

This does not check for collisions.

  RouteAllowed 
RouteAllowed (
        self,
        p1,
        p2,
        )

Check whether a scan from p1 to p2 is allowed; fake=always true

  SetFilename 
SetFilename ( self,  filename )

Set file name for data collection

  SetGenerator 
SetGenerator (
        self,
        ma=None,
        kv=None,
        outsink=None,
        )

Store generator settings for later reference

  SetPosition 
SetPosition (
        self,
        p,
        outsink=None,
        )

Set position.

  __init__ 
__init__ (
        self,
        host=None,
        txtout=None,
        header=None,
        idletask=None,
        )

Constructor that is compatible with Kappa CCD driver constructor.

But in fact all arguments except the header argument are ignored. If a header is given, the hardware is constructed compatible to the original hardware used to measure the image. If no header is given, the exact hardware you end up with may be anything you can imagine....

  __repr__ 
__repr__ ( self )

One line description of the object


Table of Contents

This document was automatically generated on Fri Jul 3 09:28:36 2009 by HappyDoc version WORKING