diff --git a/pyvo/mivot/writer/annotations.py b/pyvo/mivot/writer/annotations.py index faaa5529..76dbdcdc 100644 --- a/pyvo/mivot/writer/annotations.py +++ b/pyvo/mivot/writer/annotations.py @@ -155,7 +155,7 @@ def _get_templates(self): templates_block += "\n" return templates_block - def build_mivot_block(self, templates_id=None): + def build_mivot_block(self, *, templates_id=None): """ Builds a complete MIVOT block from the declared components and validates it against the MIVOT XML schema. @@ -296,7 +296,7 @@ def check_xml(self): except Exception as excep: raise MappingError(f"Validation failed: {excep}") from excep - def insert_into_votable(self, votable_file, template_id=None, override=False): + def insert_into_votable(self, votable_file, override=False): """ Inserts the MIVOT block into a VOTable. @@ -304,8 +304,6 @@ def insert_into_votable(self, votable_file, template_id=None, override=False): ---------- votable_file : str or VOTableFile The VOTable to be annotated, either as a file path or a ``VOTableFile`` instance. - template_id : str, optional - The ID of the TABLE to be mapped. Defaults to None. override : bool If True, overrides any existing annotations in the VOTable. diff --git a/pyvo/mivot/writer/instance.py b/pyvo/mivot/writer/instance.py index ba8c221e..c19e7c10 100644 --- a/pyvo/mivot/writer/instance.py +++ b/pyvo/mivot/writer/instance.py @@ -57,7 +57,7 @@ def __init__(self, dmtype=None, *, dmrole=None, dmid=None): self._dmid = dmid self._content = [] - def add_attribute(self, dmtype=None, dmrole=None, ref=None, value=None, unit=None): + def add_attribute(self, dmtype=None, dmrole=None, *, ref=None, value=None, unit=None): """ Add an element to the instance.