@@ -229,10 +229,6 @@ def _get_output_tensor(path, name, reference_tensor, scale, offset, axes, data_r
229229 return outputs
230230
231231
232- def _build_authors (authors : List [Dict [str , str ]]):
233- return [model_spec .raw_nodes .Author (** a ) for a in authors ]
234-
235-
236232# TODO The citation entry should be improved so that we can properly derive doi vs. url
237233def _build_cite (cite : Dict [str , str ]):
238234 citation_list = [model_spec .raw_nodes .CiteEntry (text = k , url = v ) for k , v in cite .items ()]
@@ -564,6 +560,7 @@ def build_model(
564560 postprocessing : Optional [List [Dict [str , Dict [str , Union [int , float , str ]]]]] = None ,
565561 pixel_sizes : Optional [List [Dict [str , float ]]] = None ,
566562 # general optional
563+ maintainers : Optional [List [Dict [str , str ]]] = None ,
567564 license : Optional [str ] = None ,
568565 covers : Optional [List [str ]] = None ,
569566 git_repo : Optional [str ] = None ,
@@ -731,7 +728,7 @@ def build_model(
731728 format_version = get_args (model_spec .raw_nodes .FormatVersion )[- 1 ]
732729 timestamp = datetime .datetime .now ()
733730
734- authors = _build_authors ( authors )
731+ authors = [ model_spec . raw_nodes . Author ( ** a ) for a in authors ]
735732 cite = _build_cite (cite )
736733 documentation = _ensure_local (documentation , root )
737734 if covers is None :
@@ -822,6 +819,8 @@ def build_model(
822819 if parent is not None :
823820 assert len (parent ) == 2
824821 kwargs ["parent" ] = {"uri" : parent [0 ], "sha256" : parent [1 ]}
822+ if maintainers is not None :
823+ kwargs ["maintainers" ] = [model_spec .raw_nodes .Maintainer (** m ) for m in maintainers ]
825824
826825 try :
827826 model = model_spec .raw_nodes .Model (
0 commit comments