get_attr_names

function of dascore.io.utils source

get_attr_names(
    attr_cls ,
)-> ‘set[str]’

Return the attr names a reader’s attr class accepts from a file header.

Dotted inventory names (interrogator.serial_number) name a nested inventory fact and so cannot be pydantic fields. Readers which keep only the keys their attr class declares filter through this instead of through model_fields alone, or the nested facts would be silently dropped.