Ejemplo n.º 1
0
    def __init__(self, specs):
        self._specs = copy.deepcopy(specs)

        self._header = OrderedDict()
        self._help = []
        self._setup = []
        self._post = []
        self._environment = []
        self._files = []
        self._runscript = '/neurodocker/startup.sh "$@"'
        self._test = []
        self._labels = []

        self._implementations = {
            **_installation_implementations,
            **dict(
                inspect.getmembers(_SingularityRecipeImplementations(self),
                                   predicate=inspect.ismethod))
        }

        self._order = (('header', self._header), ('help', self._help),
                       ('setup', self._setup), ('post', self._post),
                       ('environment', self._environment),
                       ('files', self._files), ('runscript', self._runscript),
                       ('test', self._test), ('labels', self._labels))
        self._parts_filled = False
        _Users.clear_memory()
        self._add_neurodocker_header()
        self._add_json()
Ejemplo n.º 2
0
    def __init__(self, specs):
        self._specs = copy.deepcopy(specs)

        self._prep()
        _Users.clear_memory()

        self._rendered = False