INNER CODE UNIT · Python

InstallMethod

broadinstitute/viral-ngs · src/viral_ngs/core/__init__.py:119

class InstallMethod(object):
    ''' Base class for installation methods for a given tool.
        None of these methods should ever fail/error. attempt_install should
        return silently regardless of the outcome (is_installed must be
        called to verify success or failure).
    '''

    def __init__(self):
        self.attempts = 0

    def is_attempted(self):
        return self.attempts

    def attempt_install(self):    # Override _attempt_install, not this.
        self.attempts += 1
        self._attempt_install()

    def _attempt_install(self):

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…