get_table_datasetΒΆ

ctapipe.utils.get_table_dataset(table_name, role='resource', **kwargs)[source]ΒΆ

get a tabular dataset as an astropy.table.Table object

Parameters
table_name: str

base name of table, without file extension

role: str

should be set to the CTA data hierarchy name when possible (e.g. dl1.sub.svc.arraylayout). This will be recorded in the provenance system.

kwargs:

extra arguments to pass to Table.read()

Returns
Table