def __init__(self): super(_InputTreeFragment, self).__init__() self.dynamic_name = SimpleStrField( self, name='dynamic_name', label="Parameter configuration name", doc="""The name of this parameter configuration""")
def __init__(self, prefix='', project_id=None): super(ABCUploaderForm, self).__init__(prefix, project_id) self.subject_field = SimpleStrField( self, name=DataTypeMetaData.KEY_SUBJECT, required=True, label='Subject', default=DataTypeMetaData.DEFAULT_SUBJECT) self.temporary_files = []
def __init__(self, project_id=None): super(StimulusRegionSelectorForm, self).__init__(project_id=project_id) traited_attr = Attr(StimuliRegionIndex, label='Load Region Stimulus', required=False) self.region_stimulus = TraitDataTypeSelectField( traited_attr, self, name='existentEntitiesSelect') self.display_name = SimpleStrField(self, name='display_name', label='Display name')
def __init__(self, project_id): super(StimulusSurfaceSelectorForm, self).__init__() self.project_id = project_id self.surface_stimulus = DataTypeSelectField( StimuliSurfaceIndex, self, name='existentEntitiesSelect', label='Load Surface Stimulus') self.display_name = SimpleStrField(self, name='display_name', label='Display name')
def __init__(self, prefix='', project_id=None): super(MatrixVisualizerForm, self).__init__(prefix, project_id, False) self.datatype = DataTypeSelectField(self.get_required_datatype(), self, name='datatype', required=True, label='Array data type', conditions=self.get_filters()) self.slice = SimpleStrField(self, name='slice', label='slice indices in numpy syntax')
def __init__(self, prefix='', project_id=None): super(MatTimeSeriesImporterForm, self).__init__(prefix, project_id) self.data_file = UploadField('.mat', self, name='data_file', required=True, label='Please select file to import') self.dataset_name = SimpleStrField( self, name='dataset_name', required=True, label='Matlab dataset name', doc='Name of the MATLAB dataset where data is stored') self.structure_path = SimpleStrField( self, name='structure_path', default='', label='For nested structures enter the field path (separated by .)' ) self.transpose = SimpleBoolField( self, name='transpose', default=False, label='Transpose the array. Expected shape is (time, channel)') self.slice = SimpleStrField( self, name='slice', default='', label= 'Slice of the array in numpy syntax. Expected shape is (time, channel)' ) self.sampling_rate = SimpleIntField(self, name='sampling_rate', default=100, label='sampling rate (Hz)') self.start_time = SimpleIntField(self, name='start_time', default=0, label='starting time (ms)', required=True)
def __init__(self, prefix='', project_id=None, label_prefix=''): super(NetworkxCFFCommonImporterForm, self).__init__(prefix, project_id) self.key_edge_weight = SimpleStrField( self, name='key_edge_weight', default=NetworkxParser.KEY_EDGE_WEIGHT[0], label=label_prefix + 'Key Edge Weight') self.key_edge_tract = SimpleStrField( self, name='key_edge_tract', default=NetworkxParser.KEY_EDGE_TRACT[0], label=label_prefix + 'Key Edge Tract') self.key_node_coordinates = SimpleStrField( self, name='key_node_coordinates', default=NetworkxParser.KEY_NODE_COORDINATES[0], label=label_prefix + 'Key Node Coordinates') self.key_node_label = SimpleStrField( self, name='key_node_label', default=NetworkxParser.KEY_NODE_LABEL[0], label=label_prefix + 'Key Node Label') self.key_node_region = SimpleStrField( self, name='key_node_region', default=NetworkxParser.KEY_NODE_REGION[0], label=label_prefix + 'Key Node Region') self.key_node_hemisphere = SimpleStrField( self, name='key_node_hemisphere', default=NetworkxParser.KEY_NODE_HEMISPHERE[0], label=label_prefix + 'Key Node Hemisphere')
def __init__(self, prefix='', project_id=None): super(ProjectionMatrixImporterForm, self).__init__(prefix, project_id) self.projection_file = UploadField('.mat, .npy', self, name='projection_file', required=True, label='Projection matrix file (.mat or .npy format)', doc='Expected a file containing projection matrix (one vector of length ' 'number of surface vertices nd values in the sensors range).') self.dataset_name = SimpleStrField(self, name='dataset_name', default=DEFAULT_DATASET_NAME, label='Matlab dataset name', doc='Name of the MATLAB dataset where data is stored. ' 'Required only for .mat files') surface_conditions = FilterChain(fields=[FilterChain.datatype + '.surface_type'], operations=['=='], values=['Cortical Surface']) self.surface = DataTypeSelectField(SurfaceIndex, self, name='surface', required=True, conditions=surface_conditions, label='Brain Cortical Surface', doc='The Brain Surface used by the uploaded projection matrix.') self.sensors = DataTypeSelectField(SensorsIndex, self, name='sensors', required=True, label='Sensors', doc='The Sensors used in for current projection.')
def __init__(self, prefix='', project_id=None): super(VolumeVisualizerForm, self).__init__(prefix, project_id) self.measure = DataTypeSelectField(self.get_required_datatype(), self, name='measure', required=True, label='Measure', doc='A measure to view on anatomy', conditions=self.get_filters()) self.region_mapping_volume = DataTypeSelectField( RegionVolumeMappingIndex, self, name='region_mapping_volume', label='Region mapping') self.data_slice = SimpleStrField(self, name='data_slice', label='slice indices in numpy syntax')
def __init__(self, prefix='', project_id=None): super(ConnectivityMeasureImporterForm, self).__init__(prefix, project_id) self.data_file = UploadField( '.mat', self, name='data_file', required=True, label='Connectivity measure file (.mat format)') self.dataset_name = SimpleStrField( self, name='dataset_name', required=True, default='M', label='Matlab dataset name', doc='Name of the MATLAB dataset where data is stored') self.connectivity = DataTypeSelectField( ConnectivityIndex, self, name='connectivity', required=True, label='Large Scale Connectivity', doc='The Connectivity for which these measurements were made')