예제 #1
0
파일: ilp.py 프로젝트: dagophil/autocontext
    def get_data_location(self, data_nr):
        """Returns the data location (either "ProjectInternal" or "FileSystem").

        :param data_nr: number of dataset
        :return: data location
        :rtype: str
        """
        h5_key = const.datalocation(data_nr)
        data_location = vigra.readHDF5(self.project_filename, h5_key)
        return data_location
예제 #2
0
파일: ilp.py 프로젝트: timoMa/autocontext
    def get_data_location(self, data_nr):
        """Returns the data location (either "ProjectInternal" or "FileSystem").

        :param data_nr: number of dataset
        :return: data location
        :rtype: str
        """
        h5_key = const.datalocation(data_nr)
        data_location = vigra.readHDF5(self.project_filename, h5_key)
        return data_location
예제 #3
0
파일: ilp.py 프로젝트: dagophil/autocontext
    def _set_internal(self, data_nr, val):
        """Sets the ilp flag of the given dataset to "ProjectInternal" if val is True, else to "FileSystem".

        :param data_nr: number of dataset
        :param val: whether to set the flag to "ProjectInternal" or "FileSystem"
        """
        h5_key = const.datalocation(data_nr)
        if val:
            vigra.writeHDF5("ProjectInternal", self.project_filename, h5_key)
        else:
            vigra.writeHDF5("FileSystem", self.project_filename, h5_key)
예제 #4
0
파일: ilp.py 프로젝트: timoMa/autocontext
    def _set_internal(self, data_nr, val):
        """Sets the ilp flag of the given dataset to "ProjectInternal" if val is True, else to "FileSystem".

        :param data_nr: number of dataset
        :param val: whether to set the flag to "ProjectInternal" or "FileSystem"
        """
        h5_key = const.datalocation(data_nr)
        if val:
            vigra.writeHDF5("ProjectInternal", self.project_filename, h5_key)
        else:
            vigra.writeHDF5("FileSystem", self.project_filename, h5_key)