get_names

method of dascore.core.inventory.Inventory source

get_names(
    self ,
)-> ‘InventoryNames’

Return the names this inventory could contribute to a patch.

These are the names Patch.enrich can be asked for and selection can query, split by where each lands: attrs for the observing-system facts, which are scalar per patch, and coords for the names taking a value per channel. attrs is the same for every inventory, since the models decide it; coords depends on what this inventory holds.

Contributing a name is not promising a value for it: a name is listed when some acquisition or optical path could define it, and one which none does simply resolves to nothing.

Examples

from dascore.examples import inventory_patch_pair

_, inventory = inventory_patch_pair()
names = inventory.get_names()
assert "gauge_length" in names.attrs
assert "interrogator.model" in names.attrs
assert "coupling" in names.coords  # its coupling_type
assert "coupling.medium" in names.coords