from_name
- ctapointing.io.from_name(name, container, **kwargs)
Read data from either HDF5 file or database into Container.
- Parameters:
name (str) – when reading from database (see below), name refers to the UUID of the dataset when reading from file, name refers to the file name
container (ctapipe.core.Container) – container class into which the data is read
**kwargs –
- database_name: str or None
if specified, read from database with name database_name. Must be specified for reading from database. If set to None, file reading mode is assumed
- collection_name: str or None
if specified, read from database collection collection_name. Must be specified for database reading
- table_name: str or None:
the table within the HDF5 file from which data is read. Must be specified for file reading
- Returns:
Container – object of type container
- Return type:
Container