merge_machine/linker.py
def load_project_to_merge(self, file_role):
        '''Uses the "current" field in metadata to load source or ref'''        
        self._check_file_role(file_role)
        # TODO: Add safeguard somewhere
        # Add source
        
        if file_role == 'source':
            try:
                self.source = ESNormalizer(self.metadata['files']['source']['project_id'])
            except:
                self.source = None
        
        if file_role == 'ref':
            try:
                self.ref = ESNormalizer(self.metadata['files']['ref']['project_id'])
            except:
                self.ref = None            
            #raise Exception('Normalizer project with id {0} could not be found'.format(project_id))
Uses the "current" field in metadata to load source or ref
Uses the "current" field in metadata to load source or ref
Uses the " current " field in metadata to load source or ref
def load_project_to_merge(self, file_role):
        self._check_file_role(file_role)
        if file_role == 'source':
            try:
                self.source = ESNormalizer(self.metadata['files']['source']['project_id'])
            except:
                self.source = None
        if file_role == 'ref':
            try:
                self.ref = ESNormalizer(self.metadata['files']['ref']['project_id'])
            except:
                self.ref = None            
def load_project_to_merge ( self , file_role ) : self . _check_file_role ( file_role ) if file_role == 'source' : try : self . source = ESNormalizer ( self . metadata [ 'files' ] [ 'source' ] [ 'project_id' ] ) except : self . source = None if file_role == 'ref' : try : self . ref = ESNormalizer ( self . metadata [ 'files' ] [ 'ref' ] [ 'project_id' ] ) except : self . ref = None
Uses the "current" field in metadata to load source or ref
Uses the " current " field in metadata to load source or ref
'''Uses the "current" field in metadata to load source or ref''' # TODO: Add safeguard somewhere # Add source #raise Exception('Normalizer project with id {0} could not be found'.format(project_id))
self
file_role