Esempio n. 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)
Esempio n. 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?')
Esempio n. 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('')
Esempio n. 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')
Esempio n. 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.')
Esempio n. 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.')
Esempio n. 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)
Esempio n. 9
0
class OpacityPeriod(PacuAttr, PositiveIntSpec):
    component = 'x-svc-comp-input-text'
    description = EmberAttr('second')
    # placeholder = EmberAttr('')
    title = EmberAttr('Opacity Period')
Esempio n. 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')
Esempio n. 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')
Esempio n. 12
0
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')
Esempio n. 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')
Esempio n. 14
0
class Check(PacuAttr, BoolSpec):
    component = 'x-svc-comp-input-check'
    description = EmberAttr('boolean')
    title = EmberAttr('')
    tooltip = EmberAttr('')
Esempio n. 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')
Esempio n. 16
0
class SNPImgSize(PacuAttr, PositiveIntSpec):
    component = 'x-svc-comp-input-text'
    description = EmberAttr('')
    placeholder = EmberAttr('')
    title = EmberAttr('Image(Texture) Size')
    tip = EmberAttr('')
Esempio n. 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')
Esempio n. 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')
Esempio n. 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')
Esempio n. 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')
Esempio n. 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)
Esempio n. 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')
Esempio n. 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')
Esempio n. 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('')
Esempio n. 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.')
Esempio n. 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..')
Esempio n. 27
0
class Randomize(PacuAttr, BoolSpec):
    component = 'x-svc-comp-input-check'
    description = EmberAttr('boolean')
    title = EmberAttr('Randomize')
Esempio n. 28
0
class SNPMaxSFrequency(PacuAttr, PositiveFloatSpec):
    component = 'x-svc-comp-input-text'
    description = EmberAttr('')
    placeholder = EmberAttr('')
    title = EmberAttr('Max SFrequency')
    tip = EmberAttr('')
Esempio n. 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.')
Esempio n. 30
0
class SNPContrPeriod(PacuAttr, PositiveIntSpec):
    component = 'x-svc-comp-input-text'
    description = EmberAttr('contrast period')
    placeholder = EmberAttr('')
    title = EmberAttr('Contrast Period')
    tip = EmberAttr('')