Example #1
0
    def get_protocol(self):
        super(BatchFitProtocolLoader, self).get_protocol()

        if self._protocol_fname and os.path.isfile(self._protocol_fname):
            return load_protocol(self._protocol_fname)

        return auto_load_protocol(self._base_dir, protocol_columns=self._protocol_columns,
                                  bvec_fname=self._bvec_fname, bval_fname=self._bval_fname)
Example #2
0
    def get_protocol(self):
        if self._protocol_fname and os.path.isfile(self._protocol_fname):
            return load_protocol(self._protocol_fname)

        return auto_load_protocol(self._base_dir,
                                  protocol_columns=self._protocol_columns,
                                  bvec_fname=self._bvec_fname,
                                  bval_fname=self._bval_fname)
Example #3
0
 def get_protocol(self):
     if self._protocol is None:
         self._protocol = auto_load_protocol(self._directory)
     return self._protocol