Skip to content

Commit

Permalink
πŸ“ template_checker.py more notes on ErrorCompare and CheckResults
Browse files Browse the repository at this point in the history
  • Loading branch information
WillForan committed Nov 25, 2024
1 parent f5cd600 commit eb6fbf6
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions template_checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,17 @@
from acq2sqlite import DBQuery
from dcmmeta2tsv import DicomTagReader, TagValues

#: Dictonary for mismatches in input (``have`` key) and template (``expect`` key)
ErrorCompare = TypedDict("ErrorCompare", {"have": str, "expect": str})

#: * ``conforms``: false when a parameter between input and template mismatch
#: * ``errors``: mismatched_param: ``{'have':...,'expect':...}``
#: * ``input``: all parameters of an input dicom header
#: * ``template``: all the parameters of a template (matching Study, SeriesName)
#: * | ``conforms``: false when a :py:data:`acq2sqlite.DBQuery.CONSTS`
#: | template-parameter between ``input`` and ``template`` mismatch
#: * | ``errors``: nested dict of {``mismatched_param``: ``{'have':...,'expect':...}}``
#: (parameter keyed dictionary with :py:class:`ErrorCompare` values)
#: * | ``input``: dict of all parameters of an input dicom header
#: | (:py:class:`dcmmeta2tsv.TagValues`)
#: * | ``template``: all the parameters of a template (matching Study, SeriesName)
#: | Also a :py:class:`dcmmeta2tsv.TagValues`
#:
#: Here's an example of :py:class:`CheckResult` datastructure in html/javascript
#: on the `static debug-enabled page <../_static/mrqart/index.html>`_
Expand Down

0 comments on commit eb6fbf6

Please sign in to comment.