def set_axistags(self, data_nr, new_axistags): """Sets the axistags of the dataset (only in the project file, not in the dataset itself). :param data_nr: number of dataset :param new_axistags: new axistags of dataset """ h5_key = const.axistags(data_nr) vigra.writeHDF5(new_axistags, self.project_filename, h5_key)
def get_axistags(self, data_nr): """Returns the axistags of the dataset as they are in the project file. :param data_nr: number of dataset :return: axistags of dataset :rtype: str """ return vigra.readHDF5(self.project_filename, const.axistags(data_nr))