diff --git a/normalizer/normalizer-repo-tags/calculate_repo_tags.py b/normalizer/normalizer-repo-tags/calculate_repo_tags.py index 8904b7a593b2b1d00fae037d1501685fd1350b79..e2d08ca98e24e3958172746553655b128912e17e 100644 --- a/normalizer/normalizer-repo-tags/calculate_repo_tags.py +++ b/normalizer/normalizer-repo-tags/calculate_repo_tags.py @@ -6,7 +6,7 @@ from nomadcore.parser_backend import JsonParseEventsWriterBackend from nomadcore.parse_streamed_dicts import * import logging -from nomadrepo.parsers import Output +from nomadrepo.core.api import API base_path = os.path.abspath(os.path.dirname(__file__)) @@ -17,10 +17,7 @@ def calculateTags(inputDict, backend, calcUri): else: backend.openContext(calcUri) repoSect = backend.openSection("section_repository_info") - print ("< ##### inputDict ##### ", inputDict, "##### >") - print ("***", inputDict.keys(), "***") - print ("Output:", Output) - #help(backend.addValue) + # fill out i.e. backend.addValue unsing input Dict # "repository_checksum", # "repository_chemical_formula", @@ -34,6 +31,12 @@ def calculateTags(inputDict, backend, calcUri): # "repository_system_type", # "repository_xc_treatment" # add more? + #print("\n*** inputDict %s *** \n", inputDict) + + work = API() + calc, error = work._parse(inputDict, "normalizerRepo") + print("\n*** calc %s *** \n", calc) + if repoSectUri: backend.closeContext(repoSectUri) else: