Пример #1
0
 def get_or_create_column(self, path, format):
     (table_path, col_name) = split_path(path)
     if table_path not in self._nodes:
         self._nodes[table_path] = Table(self._h5f, table_path)
     return self._nodes[table_path].column(col_name, format)
Пример #2
0
 def __init__(self, h5f, full_path, format=ObjectAtom()):
     self._h5f = h5f
     self.full_path = full_path
     (path, name) = split_path(self.full_path)
     super(Array, self).__init__(path, name, format)