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
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)