Skip to content

Commit

Permalink
Link integration result to AutoProcProgram
Browse files Browse the repository at this point in the history
  • Loading branch information
Anthchirp committed Oct 12, 2018
1 parent 95bebcb commit 0dd3707
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions ispyb/model/integration.py
Expand Up @@ -61,6 +61,14 @@ def APIID(self):
'''Returns the AutoProcIntegrationID.'''
return self._apiid

@property
def program(self):
'''Returns the AutoProcProgram model object for the processing program
responsible for this integration result.'''
if self._cache_app is None:
self._cache_app = ispyb.model.processingprogram.ProcessingProgram(self.APPID, self._db)
return self._cache_app

def __repr__(self):
'''Returns an object representation, including the AutoProcIntegrationID,
the database connection interface object, and the cache status.'''
Expand Down

0 comments on commit 0dd3707

Please sign in to comment.