testinventory

package
v0.0.0-...-040724e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 6, 2019 License: BSD-3-Clause, GPL-2.0 Imports: 7 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetComponents

func GetComponents(ctx context.Context) []*wtype.Liquid

GetComponents returns the components in a test inventory context

func GetPlates

func GetPlates(ctx context.Context) []*wtype.Plate

GetPlates returns the plates in a test inventory context

func GetTipboxes

func GetTipboxes(ctx context.Context) []*wtype.LHTipbox

GetTipboxes returns the tipboxes in a test inventory context

func NewContext

func NewContext(ctx context.Context) context.Context

NewContext creates a new test inventory context

Types

type PlateForSerializing

type PlateForSerializing struct {
	PlateType    string // name of plate type, potentially including tiser
	Manufacturer string // name of plate manufacturer
	// shape "box", "mm", 8.2, 8.2, 41.3 	-- defines well shape
	WellShape string  // Name of well shape
	WellH     float64 // size of well in X direction (long side of plate)
	WellW     float64 // size of well in Y direction (short side of plate)
	WellD     float64 // size of well in Z direction (vertical from plane of plate)
	// well  "ul", 2000, 420, swshp, wtype.VWellBottom, 8.2, 8.2, 41.3, 4.7, "mm"
	MaxVol     float64              // maximum volume well can hold in microlitres
	MinVol     float64              // residual volume of well in microlitres
	BottomType wtype.WellBottomType // shape of well bottom, one of "flat","U", "V"
	BottomH    float64              // offset from well bottom to rest of well in mm (i.e. height of U or V - 0 if flat)
	WellX      float64              // size of well in X direction (long side of plate)
	WellY      float64              // size of well in Y direction (short side of plate)
	WellZ      float64              // size of well in Z direction (vertical from plane of plate)
	// "Nunc96DeepWell", "Unknown", 8, 12, makePlateCoords(43.6), nunc96deepwell, 9, 9, -1.0, 0.0, 6.5
	ColSize     int                    // number of wells in a column
	RowSize     int                    // number of wells in a row
	Height      float64                // size of plate in Z direction (vertical from plane of plate)
	WellXOffset float64                // distance between adjacent well centres in X direction (long side)
	WellYOffset float64                // distance between adjacent well centres in Y direction (short side)
	WellXStart  float64                // offset from top-left corner of plate to centre of top-leftmost well in X direction (long side)
	WellYStart  float64                // offset from top-left corner of plate to centre of top-leftmost well in Y direction (short side)
	WellZStart  float64                // offset from top of plate to well bottom
	Extra       map[string]interface{} // container for additional well properties such as constraints
}

PlateForSerializing contains required measurements and other properties for creating a plate of a given type but doesn't represent each well individually

func NewPlateForSerializing

func NewPlateForSerializing(plate *wtype.LHPlate) PlateForSerializing

NewPlateForSerializing get an easily serializable version of the plate

func (PlateForSerializing) LHPlate

func (pt PlateForSerializing) LHPlate() *wtype.Plate

LHPlate returns an initialized, empty, LHPlate of the type corresponding to this PlateForSerializing

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL