Unicode.T(), help='List of user defined labels')
if tag not in self.tags: self.tags.append(tag) self.tags.sort() else: logger.warn('While adding tag: tag already set: %s' % tag)
try: self.tags.remove(tag) except ValueError: logger.warn('While removing tag: tag not set: %s' % tag)
try: info = guts.load(filename=path) except OSError: raise GrondError( 'Cannot read Grond run info file: %s' % path)
if not isinstance(info, RunInfo): raise GrondError( 'Invalid Grond run info in file "%s".' % path)
return info
try: guts.dump( info, filename=path, header='Grond run info file, version %s' % __version__)
except OSError: raise GrondError( 'Cannot write Grond run info file: %s' % path) |