示例#1
0
class SNPRotation(EnumSpec, PacuAttr):
    component = 'x-svc-comp-input-select'
    description = EmberAttr('')
    placeholder = EmberAttr('0 for vertical, 90 for horizontal')
    title = EmberAttr('Rotation')
    # tooltip = EmberAttr('')
    items = EmberAttr(rotations)
示例#2
0
class ExpBy(EnumSpec, PacuAttr):
    component = 'x-svc-comp-input-select'
    description = EmberAttr('string')
    placeholder = EmberAttr('')
    title = EmberAttr('Experimenter')
    items = EmberAttr(people)
    tooltip = EmberAttr('Who is arranging this session?')
示例#3
0
class ExpOn(EnumSpec, PacuAttr):
    component = 'x-svc-comp-input-select'
    description = EmberAttr('string')
    placeholder = EmberAttr('select...')
    title = EmberAttr('Gear')
    items = EmberAttr(gears)
    tooltip = EmberAttr('')
示例#4
0
class Unit(EnumSpec, PacuAttr):
    component = 'x-svc-comp-input-select'
    description = EmberAttr('description for unit')
    placeholder = EmberAttr('choose 1')
    title = EmberAttr('Width Unit')
    items = EmberAttr((deg, cm))
    tooltip = EmberAttr('tooltip for unit')
示例#5
0
class ExampleFieldSelect(EnumSpec, PacuAttr):
    component = 'x-svc-comp-input-select'
    description = EmberAttr('A short description')
    placeholder = EmberAttr('Prompt message...')
    title = EmberAttr('Select')
    items = EmberAttr((i1, i2))
    tooltip = EmberAttr('More tips for this field, regarding the value.')
示例#6
0
class SNPImageMag(PacuAttr, PositiveIntSpec):
    component = 'x-svc-comp-input-text'
    description = EmberAttr('Image magnification factor')
    placeholder = EmberAttr('integer')
    title = EmberAttr('ImageMag')
    tooltip = EmberAttr(
        'This number determines size of movie. (Dimension of monitor pixels divided by this number.)'
    )
class SNPViewPortOverride(PacuAttr, PositiveFloatListSpec):
    component = 'x-svc-comp-input-array'
    description = EmberAttr('Two numbers')
    placeholder = EmberAttr('0, 0')
    title = EmberAttr('View Port Override')
    tooltip = EmberAttr(
        'When you run a warped stimulus with too SHORT distance like 10 cm, '
        'visuals could be rendered off screen. This parameter overrides '
        'the extent of view port. Setting `0, 0` skips override.'
        'By default, view port is set the same dimension of monitor.')
示例#8
0
class PacuAttr(IncrementalHash):
    embers = EmberAttr.descriptor_set()
    component = 'x-svc-comp-input-text'

    def get_ember_meta(self, inst, type):
        val = self.__get__(inst, type)  # triggers __key__ set
        return dict(key=self.__key__,
                    val=val,
                    component=self.component,
                    attrs=OrderedDict(self.embers.items()))

    def __set__(self, inst, value):
        try:
            super(PacuAttr, self).__set__(inst, value)
        except Exception as e:
            msg = ('Unable to set an attribute '
                   '`{title}` of `{owner}`.({reason!s})').format(
                       title=self.title, owner=type(inst).__name__, reason=e)
            raise Exception(msg)
示例#9
0
class OpacityPeriod(PacuAttr, PositiveIntSpec):
    component = 'x-svc-comp-input-text'
    description = EmberAttr('second')
    # placeholder = EmberAttr('')
    title = EmberAttr('Opacity Period')
示例#10
0
class Gamma(PacuAttr, PositiveFloatSpec):
    component = 'x-svc-comp-input-text'
    title = EmberAttr('Gamma')
    description = EmberAttr('description for gamma')
    placeholder = EmberAttr('A placeholder when there is no input')
    tooltip = EmberAttr('Tips for example or extra information')
示例#11
0
class Repetition(PacuAttr, PositiveIntSpec):
    component = 'x-svc-comp-input-text'
    description = EmberAttr('number')
    placeholder = EmberAttr('place for repetition')
    title = EmberAttr('Repetition')
    tooltip = EmberAttr('tooltip for repetition')
示例#12
0
文件: pin.py 项目: jzeitoun/pacu-src
class Pin(PacuAttr, ZPositiveIntSpec):
    component = 'x-svc-comp-input-text'
    description = EmberAttr('Signal will emit on this pin number.')
    placeholder = EmberAttr('ex) 0')
    title = EmberAttr('Pin Number')
    tooltip = EmberAttr('tooltiptime')
示例#13
0
class SFrequencies(PacuAttr, PositiveFloatListSpec):
    component = 'x-svc-comp-input-array'
    description = EmberAttr('floating numbers')
    placeholder = EmberAttr('place for sfreq')
    title = EmberAttr('Spatial Frequencies')
    tooltip = EmberAttr('tooltip for sfreq')
示例#14
0
class Check(PacuAttr, BoolSpec):
    component = 'x-svc-comp-input-check'
    description = EmberAttr('boolean')
    title = EmberAttr('')
    tooltip = EmberAttr('')
示例#15
0
class TFrequency(PacuAttr, ZPositiveFloatSpec):
    component = 'x-svc-comp-input-array'
    description = EmberAttr('description for tfreq')
    placeholder = EmberAttr('place for tfreq')
    title = EmberAttr('Temporal Frequency')
示例#16
0
class SNPImgSize(PacuAttr, PositiveIntSpec):
    component = 'x-svc-comp-input-text'
    description = EmberAttr('')
    placeholder = EmberAttr('')
    title = EmberAttr('Image(Texture) Size')
    tip = EmberAttr('')
示例#17
0
class WaitTime(PacuAttr, ZPositiveIntSpec):
    component = 'x-svc-comp-input-text'
    description = EmberAttr('After synchronization')
    placeholder = EmberAttr('ex) 0')
    title = EmberAttr('Wait Time')
    tooltip = EmberAttr('tooltip for wait time')
示例#18
0
class SNPDim(PacuAttr, PositiveFloatSpec):
    component = 'x-svc-comp-input-text'
    description = EmberAttr('Image size')
    placeholder = EmberAttr('pixel')
    title = EmberAttr('Dim')
    tip = EmberAttr('in degree')
示例#19
0
class Width(PacuAttr, ZPositiveIntSpec):
    component = 'x-svc-comp-input-text'
    description = EmberAttr('degree')
    placeholder = EmberAttr('width of stimulus')
    title = EmberAttr('Width')
    tooltip = EmberAttr('0 for bypass')
示例#20
0
class Port(PacuAttr, PositiveIntSpec):
    component = 'x-svc-comp-input-text'
    description = EmberAttr('port number')
    placeholder = EmberAttr('port number')
    title = EmberAttr('Port')
    tooltip = EmberAttr('1-65535')
示例#21
0
class SNPFilter(EnumSpec, PacuAttr):
    component = 'x-svc-comp-input-select'
    description = EmberAttr('')
    placeholder = EmberAttr('Square for debug purpose')
    title = EmberAttr('Filter')
    items = EmberAttr(rotations)
示例#22
0
class Dist(PacuAttr, PositiveFloatSpec):
    component = 'x-svc-comp-input-text'
    description = EmberAttr('description for dist')
    placeholder = EmberAttr('place for dist')
    title = EmberAttr('Distance')
    tooltip = EmberAttr('tooltip for dist')
示例#23
0
class Orientations(PacuAttr, PositiveFloatListSpec):
    component = 'x-svc-comp-input-array'
    description = EmberAttr('floating numbers')
    placeholder = EmberAttr('place for orientations')
    title = EmberAttr('Orientations')
    tooltip = EmberAttr('tooltip for orientations')
示例#24
0
class PositionTuple(PacuAttr, FloatListSpec):
    component = 'x-svc-comp-input-array'
    description = EmberAttr('2 floats in deg')
    placeholder = EmberAttr('')
    title = EmberAttr('Position')
    tooltip = EmberAttr('')
示例#25
0
class SquareFactor(PacuAttr, PositiveIntSpec):
    component = 'x-svc-comp-input-text'
    description = EmberAttr('number')
    placeholder = EmberAttr('')
    title = EmberAttr('Square Factor')
    tooltip = EmberAttr('NxN number of squares will be rendered.')
示例#26
0
class Timeout(PacuAttr, PositiveIntSpec):
    component = 'x-svc-comp-input-text'
    description = EmberAttr('how long?')
    placeholder = EmberAttr('timeout')
    title = EmberAttr('Timeout')
    tooltip = EmberAttr('second..')
示例#27
0
class Randomize(PacuAttr, BoolSpec):
    component = 'x-svc-comp-input-check'
    description = EmberAttr('boolean')
    title = EmberAttr('Randomize')
示例#28
0
class SNPMaxSFrequency(PacuAttr, PositiveFloatSpec):
    component = 'x-svc-comp-input-text'
    description = EmberAttr('')
    placeholder = EmberAttr('')
    title = EmberAttr('Max SFrequency')
    tip = EmberAttr('')
示例#29
0
class Flicker(PacuAttr, BoolSpec):
    component = 'x-svc-comp-input-check'
    description = EmberAttr('boolean')
    title = EmberAttr('Flicker')
    tooltip = EmberAttr('Check if you want to show full field flicker.')
示例#30
0
class SNPContrPeriod(PacuAttr, PositiveIntSpec):
    component = 'x-svc-comp-input-text'
    description = EmberAttr('contrast period')
    placeholder = EmberAttr('')
    title = EmberAttr('Contrast Period')
    tip = EmberAttr('')