def __init__(self, *args, **kwargs):
        fields = kwargs.pop('fields', None)

        req = ['specie']

        if fields is None:
            fields = tuple(req)

        super(InitialSpecieSerializer, self).__init__(*args, **kwargs)

        Tool.drop_fields(self, fields)
예제 #2
0
    def __init__(self, *args, **kwargs):
        fields = kwargs.pop('fields', None)

        req = ['uncertainty_reference', 'species_object']

        if fields is None:
            fields = tuple(req)

        super(DataColumnSerializer, self).__init__(*args, **kwargs)

        Tool.drop_fields(self, fields)
예제 #3
0
    def __init__(self, *args, **kwargs):
        fields = kwargs.pop('fields', None)

        req = ['id', 'preferredKey']

        if fields is None:
            fields = tuple(req)

        super(SpecieSerializer, self).__init__(*args, **kwargs)

        Tool.drop_fields(self, fields)
예제 #4
0
    def __init__(self, *args, **kwargs):
        fields = kwargs.pop('fields', None)

        req = ['name']

        if fields is None:
            fields = tuple(req)
        elif req not in fields:
            fields = fields + tuple(req)

        super(ChemModelSerializer, self).__init__(*args, **kwargs)

        Tool.drop_fields(self, fields)
    def __init__(self, *args, **kwargs):
        fields = kwargs.pop('fields', None)

        req = ['error', 'score', 'execution_column']

        if fields is None:
            fields = tuple(req)
        elif req not in fields:
            fields = fields + tuple(req)

        super(CurveMatchingResultSerializer, self).__init__(*args, **kwargs)

        Tool.drop_fields(self, fields)
    def __init__(self, *args, **kwargs):
        fields = kwargs.pop('fields', None)

        req = ['chemModel', 'experiment', 'execution_columns']

        if fields is None:
            fields = tuple(req)
        elif req not in fields:
            fields = fields + tuple(req)

        super(ExecutionSerializer, self).__init__(*args, **kwargs)

        Tool.drop_fields(self, fields)
예제 #7
0
    def __init__(self, *args, **kwargs):
        fields = kwargs.pop('fields', None)

        req = [
            'common_properties', 'initial_species', 'data_columns',
            'common_properties', 'file_paper'
        ]

        if fields is None:
            fields = tuple(req)

        super(ExperimentSerializer, self).__init__(*args, **kwargs)

        Tool.drop_fields(self, fields)
예제 #8
0
    def __init__(self, *args, **kwargs):
        fields = kwargs.pop('fields', None)

        super(FilePaperSerializer, self).__init__(*args, **kwargs)

        Tool.drop_fields(self, fields)
    def __init__(self, *args, **kwargs):
        fields = kwargs.pop('fields', None)

        super(ExperimentInterpreterSerializer, self).__init__(*args, **kwargs)

        Tool.drop_fields(self, fields)
예제 #10
0
    def __init__(self, *args, **kwargs):
        fields = kwargs.pop('fields', None)

        super(ExecutionColumnSerializer, self).__init__(*args, **kwargs)

        Tool.drop_fields(self, fields)
    def __init__(self, *args, **kwargs):
        fields = kwargs.pop('fields', None)

        super(CommonPropertySerializer, self).__init__(*args, **kwargs)

        Tool.drop_fields(self, fields)