@@ -229,10 +229,6 @@ def _get_output_tensor(path, name, reference_tensor, scale, offset, axes, data_r
229
229
return outputs
230
230
231
231
232
- def _build_authors (authors : List [Dict [str , str ]]):
233
- return [model_spec .raw_nodes .Author (** a ) for a in authors ]
234
-
235
-
236
232
# TODO The citation entry should be improved so that we can properly derive doi vs. url
237
233
def _build_cite (cite : Dict [str , str ]):
238
234
citation_list = [model_spec .raw_nodes .CiteEntry (text = k , url = v ) for k , v in cite .items ()]
@@ -564,6 +560,7 @@ def build_model(
564
560
postprocessing : Optional [List [Dict [str , Dict [str , Union [int , float , str ]]]]] = None ,
565
561
pixel_sizes : Optional [List [Dict [str , float ]]] = None ,
566
562
# general optional
563
+ maintainers : Optional [List [Dict [str , str ]]] = None ,
567
564
license : Optional [str ] = None ,
568
565
covers : Optional [List [str ]] = None ,
569
566
git_repo : Optional [str ] = None ,
@@ -731,7 +728,7 @@ def build_model(
731
728
format_version = get_args (model_spec .raw_nodes .FormatVersion )[- 1 ]
732
729
timestamp = datetime .datetime .now ()
733
730
734
- authors = _build_authors ( authors )
731
+ authors = [ model_spec . raw_nodes . Author ( ** a ) for a in authors ]
735
732
cite = _build_cite (cite )
736
733
documentation = _ensure_local (documentation , root )
737
734
if covers is None :
@@ -822,6 +819,8 @@ def build_model(
822
819
if parent is not None :
823
820
assert len (parent ) == 2
824
821
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 ]
825
824
826
825
try :
827
826
model = model_spec .raw_nodes .Model (
0 commit comments