コード例 #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)