hdmf.common package¶
Subpackages¶
Submodules¶
- hdmf.common.alignedtable module
AlignedDynamicTableAlignedDynamicTable.category_tablesAlignedDynamicTable.categoriesAlignedDynamicTable.add_categoryAlignedDynamicTable.get_categoryAlignedDynamicTable.add_columnAlignedDynamicTable.add_rowAlignedDynamicTable.get_colnamesAlignedDynamicTable.to_dataframeAlignedDynamicTable.__getitem__AlignedDynamicTable.getAlignedDynamicTable.has_foreign_columnsAlignedDynamicTable.get_foreign_columnsAlignedDynamicTable.get_linked_tablesAlignedDynamicTable.data_typeAlignedDynamicTable.namespace
- hdmf.common.hierarchicaltable module
- hdmf.common.multi module
- hdmf.common.resources module
KeyTableKeyEntityTableEntityFileTableFileObjectTableObjectObjectKeyTableEntityKeyTableEntityKeyObjectKeyHERDHERD.keysHERD.filesHERD.entitiesHERD.objectsHERD.object_keysHERD.entity_keysHERD.assert_external_resources_equalHERD.add_ref_containerHERD.add_ref_termsetHERD.add_refHERD.get_keyHERD.get_entityHERD.get_object_typeHERD.get_object_entitiesHERD.to_dataframeHERD.to_zipHERD.get_zip_directoryHERD.from_zipHERD.data_typeHERD.namespace
- hdmf.common.sparse module
- hdmf.common.table module
VectorDataVectorIndexElementIdentifiersDynamicTableDynamicTable.descriptionDynamicTable.idDynamicTable.colnamesDynamicTable.columnsDynamicTable.add_rowDynamicTable.add_columnDynamicTable.create_regionDynamicTable.__getitem__DynamicTable.getDynamicTable.get_foreign_columnsDynamicTable.has_foreign_columnsDynamicTable.get_linked_tablesDynamicTable.to_dataframeDynamicTable.generate_html_reprDynamicTable.from_dataframeDynamicTable.copyDynamicTable.data_typeDynamicTable.namespace
DynamicTableRegionEnumData
Module contents¶
This package will contain functions, classes, and objects for reading and writing data in according to the HDMF-common specification
- hdmf.common.load_type_config(config_path, type_map=None)¶
- This method will either load the default config or the config provided by the path.
NOTE: This config is global and shared across all type maps.
- hdmf.common.get_loaded_type_config(type_map=None)¶
This method returns the entire config file.
- Parameters:
type_map (
TypeMap) – The TypeMap.
- hdmf.common.unload_type_config(type_map=None)¶
Unload the configuration file.
- Parameters:
type_map (
TypeMap) – The TypeMap.
- hdmf.common.register_class(data_type, namespace='hdmf-common', container_cls=None)¶
- Register an Container class to use for reading and writing a data_type from a specification
If container_cls is not specified, returns a decorator for registering an Container subclass as the class for data_type in namespace.
- hdmf.common.register_map(container_cls, mapper_cls=None)¶
- Register an ObjectMapper to use for a Container class type
If mapper_cls is not specified, returns a decorator for registering an ObjectMapper class as the mapper for container_cls. If mapper_cls specified, register the class as the mapper for container_cls
- hdmf.common.load_namespaces(namespace_path)¶
Load namespaces from file
- hdmf.common.available_namespaces()¶
- hdmf.common.get_class(data_type, namespace, post_init_method=None)¶
Get the class object of the Container subclass corresponding to a given neurdata_type.
- hdmf.common.get_type_map(extensions=None)¶
- Get a BuildManager to use for I/O using the given extensions. If no extensions are provided,
return a BuildManager that uses the core namespace
- hdmf.common.get_manager(extensions=None)¶
- Get a BuildManager to use for I/O using the given extensions. If no extensions are provided,
return a BuildManager that uses the core namespace
- hdmf.common.validate(io, namespace='hdmf-common', experimental=False)¶
Validate an file against a namespace
- hdmf.common.get_hdf5io(path=None, mode='r', manager=None, comm=None, file=None, driver=None, aws_region=None, herd_path=None)¶
A convenience method for getting an HDF5IO object using an HDMF-common build manager if none is provided.
- Parameters:
mode (
str) – the mode to open the HDF5 file with, one of (“w”, “r”, “r+”, “a”, “w-”, “x”). See h5py.File for more details.manager (
TypeMaporBuildManager) – the BuildManager or a TypeMap to construct a BuildManager to use for I/Ocomm (
Intracomm) – the MPI communicator to use for parallel I/Ofile (
FileorS3FileorRemFile) – a pre-existing h5py.File, S3File, or RemFile objectdriver (
str) – driver for h5py to use when opening HDF5 fileaws_region (
str) – If driver is ros3, then specify the aws region of the url.herd_path (
str) – The path to read/write the HERD file