예제 #1
0
파일: report.py 프로젝트: biochem-fan/dials
  def as_dict(self):
    '''
    Return the report as a dictionary

    :return: The dictionary

    '''
    from collections import OrderedDict
    result = OrderedDict()
    result['tables'] = dict([(table.name, table.as_dict()) for table in self.tables ])
    result['arrays'] = dict([(array.name, array.as_dict()) for array in self.arrays ])
    return result
예제 #2
0
    def as_dict(self):
        '''
    Return the report as a dictionary

    :return: The dictionary

    '''
        from collections import OrderedDict
        result = OrderedDict()
        result['tables'] = {
            table.name: table.as_dict()
            for table in self.tables
        }
        result['arrays'] = {
            array.name: array.as_dict()
            for array in self.arrays
        }
        return result
예제 #3
0
    def as_dict(self):
        """
        Return the report as a dictionary

        :return: The dictionary
        """
        from collections import OrderedDict

        result = OrderedDict()
        result["tables"] = {
            table.name: table.as_dict()
            for table in self.tables
        }
        result["arrays"] = {
            array.name: array.as_dict()
            for array in self.arrays
        }
        return result