add_data_origin_info#
- astropy.io.votable.dataorigin.add_data_origin_info(vot_element, info_name, info_value, content=None)[source]#
- Update VOTable element with information compatible
with DataOrigin vocabulary.
- Parameters:
- vot_element
astropy.io.votable.tree.Element VOTable element where to add the information
- info_name
python:str Attribute name (see DATAORIGIN_INFO, DATAORIGIN_QUERY_INFO)
- info_value
python:str value
- content
python:str, optional Content in
<INFO>(default: None)
- vot_element
- Raises:
TypeErrorinput type not managed or information name not recognized
ValueErrorinfo_namealready exists invot_elementValueErrorinfo_nameis an unknown DataOrigin name.
Notes
The function checks information name and adds the VOTable element with a new
<INFO>.