(self, pipeline, dataset, subject, session=None)
Check if we have results for a current combination of pipeline
        / dataset / subject.
Check if we have results for a current combination of pipeline
        / dataset / subject.
Check if we have results for a current combination of pipeline / dataset / subject .
def _already_computed(self, pipeline, dataset, subject, session=None):
        """Check if we have results for a current combination of pipeline
        / dataset / subject.
        """
        with h5py.File(self.filepath, "r") as f:
            # get the digest from repr
            digest = get_digest(pipeline)

            # check if digest present
            if digest not in f.keys():
                return False
            else:
                pipe_grp = f[digest]
                # if present, check for dataset code
                if dataset.code not in pipe_grp.keys():
                    return False
                else:
                    # if dataset, check for subject
                    dset = pipe_grp[dataset.code]
                    return str(subject).encode("utf-8") in dset["id"][:, 0]
def _already_computed ( self , pipeline , dataset , subject , session = None ) : with h5py . File ( self . filepath , "r" ) as f : # get the digest from repr digest = get_digest ( pipeline ) # check if digest present if digest not in f . keys ( ) : return False else : pipe_grp = f [ digest ] # if present, check for dataset code if dataset . code not in pipe_grp . keys ( ) : return False else : # if dataset, check for subject dset = pipe_grp [ dataset . code ] return str ( subject ) . encode ( "utf-8" ) in dset [ "id" ] [ : , 0 ]