コード例 #1
0
ファイル: _schemas.py プロジェクト: tmchartrand/ipfx
class SweepFeatures(DefaultSchema):
    stimulus_code = String(description="stimulus code", required=True)
    stimulus_name = String(
        description="index of sweep in order of presentation", required=True)
    stimulus_amplitude = Float(description="amplitude of stimulus",
                               required=True,
                               allow_none=True)
    sweep_number = Integer(
        description="index of sweep in order of presentation", required=True)
    stimulus_units = String(desription="stimulus units", required=True)
    bridge_balance_mohm = Float(description="bridge balance", allow_none=True)
    pre_vm_mv = Float(allow_none=True)
    leak_pa = Float(allow_none=True)
コード例 #2
0
class Roi(RaisingSchema):
    mask = List(List(Boolean), required=True, description='raster mask')
    y = Integer(required=True,
                description='y position (pixels) of mask\'s bounding box')
    x = Integer(required=True,
                description='x position (pixels) of mask\'s bounding box')
    width = Integer(required=True,
                    description='width (pixels)of mask\'s bounding box')
    height = Integer(required=True,
                     description='height (pixels) of mask\'s bounding box')
    valid = Boolean(default=True, description='Is this Roi known to be valid?')
    id = Integer(required=True,
                 description='unique integer identifier for this Roi')
    mask_page = Integer(default=-1,
                        description='')  # TODO: this isn't in the examples
コード例 #3
0
ファイル: _schemas.py プロジェクト: ww2470/ipfx
class ManualSweepState(DefaultSchema):
    sweep_number = Integer(description="sweep number", required=True)
    passed = Boolean(description="manual override state", required=True)