module-qc-database-tools 2.12.0rc0__tar.gz → 2.12.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (164) hide show
  1. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/.gitlab-ci.yml +3 -5
  2. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/.zenodo.json +3 -3
  3. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/CITATION.cff +2 -2
  4. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/PKG-INFO +4 -4
  5. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/README.md +1 -1
  6. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/docs/history.md +50 -3
  7. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/docs/install.md +2 -2
  8. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/mkdocs.yml +1 -0
  9. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/pyproject.toml +1 -1
  10. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/src/module_qc_database_tools/_version.py +2 -2
  11. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/src/module_qc_database_tools/cli/generate_yarr_config.py +1 -30
  12. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/src/module_qc_database_tools/cli/run_full_qc.py +107 -40
  13. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/src/module_qc_database_tools/core.py +23 -0
  14. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/src/module_qc_database_tools/review/checks.py +60 -0
  15. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/src/module_qc_database_tools/utils.py +4 -0
  16. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/tbump.toml +2 -2
  17. module_qc_database_tools-2.12.1/tests/test_mqat_version.py +51 -0
  18. module_qc_database_tools-2.12.1/tests/test_review_cdr_cp.py +66 -0
  19. module_qc_database_tools-2.12.1/tests/test_set_cdr_cp.py +34 -0
  20. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/.env.template +0 -0
  21. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/.gitattributes +0 -0
  22. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/.gitignore +0 -0
  23. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/.linkcheckerrc +0 -0
  24. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/.pre-commit-config.yaml +0 -0
  25. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/LICENSE +0 -0
  26. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/ci/pre-commit-update.sh +0 -0
  27. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/docs/.gitkeep +0 -0
  28. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/docs/.overrides/main.html +0 -0
  29. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/docs/.snippets/abbrs.txt +0 -0
  30. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/docs/.snippets/links.txt +0 -0
  31. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/docs/assets/css/custom.css +0 -0
  32. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/docs/config.md +0 -0
  33. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/docs/development.md +0 -0
  34. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/docs/dynamic_docstring.py +0 -0
  35. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/docs/index.md +0 -0
  36. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/docs/iref_trim.md +0 -0
  37. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/docs/meta/authors.md +0 -0
  38. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/docs/reference/cli.md +0 -0
  39. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/docs/reference/gen_ref_nav.py +0 -0
  40. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/docs/stylesheets/fonts/KFOjCnqEu92Fr1Mu51TjASc-CsTKlA.woff2 +0 -0
  41. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/docs/stylesheets/fonts/KFOjCnqEu92Fr1Mu51TjASc0CsTKlA.woff2 +0 -0
  42. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/docs/stylesheets/fonts/KFOjCnqEu92Fr1Mu51TjASc1CsTKlA.woff2 +0 -0
  43. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/docs/stylesheets/fonts/KFOjCnqEu92Fr1Mu51TjASc2CsTKlA.woff2 +0 -0
  44. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/docs/stylesheets/fonts/KFOjCnqEu92Fr1Mu51TjASc3CsTKlA.woff2 +0 -0
  45. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/docs/stylesheets/fonts/KFOjCnqEu92Fr1Mu51TjASc5CsTKlA.woff2 +0 -0
  46. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/docs/stylesheets/fonts/KFOjCnqEu92Fr1Mu51TjASc6CsQ.woff2 +0 -0
  47. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/docs/stylesheets/fonts/KFOjCnqEu92Fr1Mu51TzBic-CsTKlA.woff2 +0 -0
  48. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/docs/stylesheets/fonts/KFOjCnqEu92Fr1Mu51TzBic0CsTKlA.woff2 +0 -0
  49. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/docs/stylesheets/fonts/KFOjCnqEu92Fr1Mu51TzBic1CsTKlA.woff2 +0 -0
  50. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/docs/stylesheets/fonts/KFOjCnqEu92Fr1Mu51TzBic2CsTKlA.woff2 +0 -0
  51. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/docs/stylesheets/fonts/KFOjCnqEu92Fr1Mu51TzBic3CsTKlA.woff2 +0 -0
  52. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/docs/stylesheets/fonts/KFOjCnqEu92Fr1Mu51TzBic5CsTKlA.woff2 +0 -0
  53. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/docs/stylesheets/fonts/KFOjCnqEu92Fr1Mu51TzBic6CsQ.woff2 +0 -0
  54. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/docs/stylesheets/fonts/KFOkCnqEu92Fr1Mu51xEIzIFKw.woff2 +0 -0
  55. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/docs/stylesheets/fonts/KFOkCnqEu92Fr1Mu51xFIzIFKw.woff2 +0 -0
  56. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/docs/stylesheets/fonts/KFOkCnqEu92Fr1Mu51xGIzIFKw.woff2 +0 -0
  57. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/docs/stylesheets/fonts/KFOkCnqEu92Fr1Mu51xHIzIFKw.woff2 +0 -0
  58. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/docs/stylesheets/fonts/KFOkCnqEu92Fr1Mu51xIIzI.woff2 +0 -0
  59. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/docs/stylesheets/fonts/KFOkCnqEu92Fr1Mu51xLIzIFKw.woff2 +0 -0
  60. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/docs/stylesheets/fonts/KFOkCnqEu92Fr1Mu51xMIzIFKw.woff2 +0 -0
  61. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/docs/stylesheets/fonts/KFOlCnqEu92Fr1MmSU5fABc4EsA.woff2 +0 -0
  62. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/docs/stylesheets/fonts/KFOlCnqEu92Fr1MmSU5fBBc4.woff2 +0 -0
  63. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/docs/stylesheets/fonts/KFOlCnqEu92Fr1MmSU5fBxc4EsA.woff2 +0 -0
  64. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/docs/stylesheets/fonts/KFOlCnqEu92Fr1MmSU5fCBc4EsA.woff2 +0 -0
  65. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/docs/stylesheets/fonts/KFOlCnqEu92Fr1MmSU5fCRc4EsA.woff2 +0 -0
  66. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/docs/stylesheets/fonts/KFOlCnqEu92Fr1MmSU5fChc4EsA.woff2 +0 -0
  67. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/docs/stylesheets/fonts/KFOlCnqEu92Fr1MmSU5fCxc4EsA.woff2 +0 -0
  68. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/docs/stylesheets/fonts/KFOlCnqEu92Fr1MmWUlfABc4EsA.woff2 +0 -0
  69. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/docs/stylesheets/fonts/KFOlCnqEu92Fr1MmWUlfBBc4.woff2 +0 -0
  70. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/docs/stylesheets/fonts/KFOlCnqEu92Fr1MmWUlfBxc4EsA.woff2 +0 -0
  71. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/docs/stylesheets/fonts/KFOlCnqEu92Fr1MmWUlfCBc4EsA.woff2 +0 -0
  72. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/docs/stylesheets/fonts/KFOlCnqEu92Fr1MmWUlfCRc4EsA.woff2 +0 -0
  73. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/docs/stylesheets/fonts/KFOlCnqEu92Fr1MmWUlfChc4EsA.woff2 +0 -0
  74. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/docs/stylesheets/fonts/KFOlCnqEu92Fr1MmWUlfCxc4EsA.woff2 +0 -0
  75. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/docs/stylesheets/fonts/KFOmCnqEu92Fr1Mu4WxKOzY.woff2 +0 -0
  76. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/docs/stylesheets/fonts/KFOmCnqEu92Fr1Mu4mxK.woff2 +0 -0
  77. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/docs/stylesheets/fonts/KFOmCnqEu92Fr1Mu5mxKOzY.woff2 +0 -0
  78. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/docs/stylesheets/fonts/KFOmCnqEu92Fr1Mu72xKOzY.woff2 +0 -0
  79. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/docs/stylesheets/fonts/KFOmCnqEu92Fr1Mu7GxKOzY.woff2 +0 -0
  80. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/docs/stylesheets/fonts/KFOmCnqEu92Fr1Mu7WxKOzY.woff2 +0 -0
  81. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/docs/stylesheets/fonts/KFOmCnqEu92Fr1Mu7mxKOzY.woff2 +0 -0
  82. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/docs/stylesheets/fonts/L0xTDF4xlVMF-BfR8bXMIhJHg45mwgGEFl0_3vrtSM1J-gEPT5Ese6hmHSV0mf0h.woff2 +0 -0
  83. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/docs/stylesheets/fonts/L0xTDF4xlVMF-BfR8bXMIhJHg45mwgGEFl0_3vrtSM1J-gEPT5Ese6hmHSZ0mf0h.woff2 +0 -0
  84. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/docs/stylesheets/fonts/L0xTDF4xlVMF-BfR8bXMIhJHg45mwgGEFl0_3vrtSM1J-gEPT5Ese6hmHSd0mf0h.woff2 +0 -0
  85. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/docs/stylesheets/fonts/L0xTDF4xlVMF-BfR8bXMIhJHg45mwgGEFl0_3vrtSM1J-gEPT5Ese6hmHSh0mQ.woff2 +0 -0
  86. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/docs/stylesheets/fonts/L0xTDF4xlVMF-BfR8bXMIhJHg45mwgGEFl0_3vrtSM1J-gEPT5Ese6hmHSt0mf0h.woff2 +0 -0
  87. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/docs/stylesheets/fonts/L0xTDF4xlVMF-BfR8bXMIhJHg45mwgGEFl0_3vrtSM1J-gEPT5Ese6hmHSx0mf0h.woff2 +0 -0
  88. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/docs/stylesheets/fonts/L0xdDF4xlVMF-BfR8bXMIjhOsXG-q2oeuFoqFrlnAIe2Imhk1T8rbociImtElOUlYIw.woff2 +0 -0
  89. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/docs/stylesheets/fonts/L0xdDF4xlVMF-BfR8bXMIjhOsXG-q2oeuFoqFrlnAIe2Imhk1T8rbociImtEleUlYIw.woff2 +0 -0
  90. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/docs/stylesheets/fonts/L0xdDF4xlVMF-BfR8bXMIjhOsXG-q2oeuFoqFrlnAIe2Imhk1T8rbociImtEluUlYIw.woff2 +0 -0
  91. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/docs/stylesheets/fonts/L0xdDF4xlVMF-BfR8bXMIjhOsXG-q2oeuFoqFrlnAIe2Imhk1T8rbociImtEm-Ul.woff2 +0 -0
  92. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/docs/stylesheets/fonts/L0xdDF4xlVMF-BfR8bXMIjhOsXG-q2oeuFoqFrlnAIe2Imhk1T8rbociImtEmOUlYIw.woff2 +0 -0
  93. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/docs/stylesheets/fonts/L0xdDF4xlVMF-BfR8bXMIjhOsXG-q2oeuFoqFrlnAIe2Imhk1T8rbociImtEn-UlYIw.woff2 +0 -0
  94. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/docs/stylesheets/fonts.css +0 -0
  95. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/docs/stylesheets/readme.txt +0 -0
  96. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/docs/yarr.md +0 -0
  97. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/src/module_qc_database_tools/__init__.py +0 -0
  98. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/src/module_qc_database_tools/chip_config_api.py +0 -0
  99. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/src/module_qc_database_tools/cli/__init__.py +0 -0
  100. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/src/module_qc_database_tools/cli/__main__.py +0 -0
  101. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/src/module_qc_database_tools/cli/assign_tag.py +0 -0
  102. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/src/module_qc_database_tools/cli/download_component.py +0 -0
  103. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/src/module_qc_database_tools/cli/fetch_reference_ivs.py +0 -0
  104. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/src/module_qc_database_tools/cli/get_bom_info.py +0 -0
  105. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/src/module_qc_database_tools/cli/get_vfd_info.py +0 -0
  106. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/src/module_qc_database_tools/cli/globals.py +0 -0
  107. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/src/module_qc_database_tools/cli/influxdbtool_retrieve.py +0 -0
  108. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/src/module_qc_database_tools/cli/localdbtool_retrieve.py +0 -0
  109. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/src/module_qc_database_tools/cli/localdbtool_upload.py +0 -0
  110. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/src/module_qc_database_tools/cli/main.py +0 -0
  111. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/src/module_qc_database_tools/cli/pull_component.py +0 -0
  112. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/src/module_qc_database_tools/cli/recycle_analysis.py +0 -0
  113. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/src/module_qc_database_tools/cli/recycle_esummary.py +0 -0
  114. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/src/module_qc_database_tools/cli/register_component.py +0 -0
  115. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/src/module_qc_database_tools/cli/review_component.py +0 -0
  116. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/src/module_qc_database_tools/cli/sync_component_stages.py +0 -0
  117. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/src/module_qc_database_tools/cli/upload_measurement.py +0 -0
  118. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/src/module_qc_database_tools/cli/utils.py +0 -0
  119. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/src/module_qc_database_tools/data/YARR/chip_template.json +0 -0
  120. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/src/module_qc_database_tools/data/YARR/default_chip_config.json +0 -0
  121. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/src/module_qc_database_tools/data/componentConfigs.json +0 -0
  122. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/src/module_qc_database_tools/db/__init__.py +0 -0
  123. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/src/module_qc_database_tools/db/local.py +0 -0
  124. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/src/module_qc_database_tools/db/ls.py +0 -0
  125. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/src/module_qc_database_tools/db/prod.py +0 -0
  126. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/src/module_qc_database_tools/db/show_qc_pipeline.py +0 -0
  127. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/src/module_qc_database_tools/db/show_qc_status.py +0 -0
  128. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/src/module_qc_database_tools/db/show_test.py +0 -0
  129. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/src/module_qc_database_tools/db/upload_test.py +0 -0
  130. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/src/module_qc_database_tools/exceptions.py +0 -0
  131. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/src/module_qc_database_tools/iv/__init__.py +0 -0
  132. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/src/module_qc_database_tools/iv/localdb.py +0 -0
  133. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/src/module_qc_database_tools/iv/proddb.py +0 -0
  134. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/src/module_qc_database_tools/models.py +0 -0
  135. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/src/module_qc_database_tools/recycle.py +0 -0
  136. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/src/module_qc_database_tools/review/__init__.py +0 -0
  137. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/src/module_qc_database_tools/review/helpers.py +0 -0
  138. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/src/module_qc_database_tools/sync_component_stages/__init__.py +0 -0
  139. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/src/module_qc_database_tools/typing_compat.py +0 -0
  140. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/src/module_qc_database_tools/yarr/README.md +0 -0
  141. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/src/module_qc_database_tools/yarr/__init__.py +0 -0
  142. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/src/module_qc_database_tools/yarr/common.py +0 -0
  143. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/src/module_qc_database_tools/yarr/configs/influxdb_connectivity.json +0 -0
  144. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/src/module_qc_database_tools/yarr/db_logging.py +0 -0
  145. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/src/module_qc_database_tools/yarr/direct.py +0 -0
  146. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/src/module_qc_database_tools/yarr/indirect.py +0 -0
  147. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/src/module_qc_database_tools/yarr/localdb.py +0 -0
  148. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/src/module_qc_database_tools/yarr/login_mongodb.sh +0 -0
  149. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/src/module_qc_database_tools/yarr/register.py +0 -0
  150. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/src/module_qc_database_tools/yarr/setting/default/database.json +0 -0
  151. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/src/module_qc_database_tools/yarr/setting/default/dcs.dat +0 -0
  152. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/src/module_qc_database_tools/yarr/setting/default/dcs_info.json +0 -0
  153. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/src/module_qc_database_tools/yarr/setting/default/register_component_fei4b.json +0 -0
  154. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/src/module_qc_database_tools/yarr/setting/default/register_component_rd53a.json +0 -0
  155. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/src/module_qc_database_tools/yarr/setting/default/site.json +0 -0
  156. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/src/module_qc_database_tools/yarr/setting/default/user.json +0 -0
  157. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/src/module_qc_database_tools/yarr/setting/requirements-pip.txt +0 -0
  158. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/src/module_qc_database_tools/yarr/setting/requirements-yum.txt +0 -0
  159. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/src/module_qc_database_tools/yarr/setup_db.sh +0 -0
  160. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/tests/test_cli.py +0 -0
  161. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/tests/test_config_api.py +0 -0
  162. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/tests/test_iv.py +0 -0
  163. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/tests/test_package.py +0 -0
  164. {module_qc_database_tools-2.12.0rc0 → module_qc_database_tools-2.12.1}/tests/test_utils.py +0 -0
@@ -5,7 +5,7 @@ stages:
5
5
  - build
6
6
  - deploy
7
7
 
8
- image: registry.cern.ch/docker.io/library/python:3.11-buster
8
+ image: registry.cern.ch/docker.io/library/python:3.12-bookworm
9
9
  before_script:
10
10
  # want to set up a virtualenv to cache
11
11
  - apt-get install -y --no-install-recommends git
@@ -25,7 +25,6 @@ before_script:
25
25
 
26
26
  # NB: repo-review requires python>=3.10
27
27
  review:
28
- image: registry.cern.ch/docker.io/library/python:3.10-buster
29
28
  stage: check
30
29
  script:
31
30
  - pipx run 'sp-repo-review[cli]' .
@@ -74,14 +73,13 @@ tests:
74
73
  PYTHON_VERSION: "3.10"
75
74
  - IMAGE: "registry.cern.ch/docker.io/library/python:3.11-buster"
76
75
  PYTHON_VERSION: "3.11"
77
- - IMAGE: "registry.cern.ch/docker.io/library/python:3.12-bullseye"
76
+ - IMAGE: "registry.cern.ch/docker.io/library/python:3.12-bookworm"
78
77
  PYTHON_VERSION: "3.12"
79
- - IMAGE: "registry.cern.ch/docker.io/library/python:3.13-bullseye"
78
+ - IMAGE: "registry.cern.ch/docker.io/library/python:3.13-bookworm"
80
79
  PYTHON_VERSION: "3.13"
81
80
 
82
81
  make-docs:
83
82
  stage: test
84
- image: registry.cern.ch/docker.io/library/python:3.11-bullseye
85
83
  rules:
86
84
  - if: $CI_PIPELINE_SOURCE == "push"
87
85
  script: pipx run hatch run docs:build-check
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "description": " general python tool for interfacing with databases during module QC tests for the ATLAS ITk project",
3
3
  "license": "MIT",
4
- "title": "atlas-itk-pixel-modules/mqdbt: v2.12.0rc0",
5
- "version": "v2.12.0rc0",
4
+ "title": "atlas-itk-pixel-modules/mqdbt: v2.12.1",
5
+ "version": "v2.12.1",
6
6
  "upload_type": "software",
7
7
  "creators": [
8
8
  {
@@ -80,7 +80,7 @@
80
80
  "related_identifiers": [
81
81
  {
82
82
  "scheme": "url",
83
- "identifier": "https://gitlab.cern.ch/atlas-itk/pixel/module/module-qc-database-tools/-/tree/v2.12.0rc0",
83
+ "identifier": "https://gitlab.cern.ch/atlas-itk/pixel/module/module-qc-database-tools/-/tree/v2.12.1",
84
84
  "relation": "isSupplementTo"
85
85
  }
86
86
  ]
@@ -54,6 +54,6 @@ keywords:
54
54
  license:
55
55
  - mit
56
56
  message: If you use this software, please cite it using the metadata from this file.
57
- title: 'atlas-itk-pixel-modules/mqdbt: v2.12.0rc0'
57
+ title: 'atlas-itk-pixel-modules/mqdbt: v2.12.1'
58
58
  type: software
59
- version: v2.12.0rc0
59
+ version: v2.12.1
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.4
1
+ Metadata-Version: 2.5
2
2
  Name: module-qc-database-tools
3
- Version: 2.12.0rc0
3
+ Version: 2.12.1
4
4
  Summary: Python wrapper to interface with LocalDB and Production DB for common tasks for pixel modules.
5
5
  Project-URL: Homepage, https://gitlab.cern.ch/atlas-itk/pixel/module/module-qc-database-tools
6
6
  Project-URL: Bug Tracker, https://gitlab.cern.ch/atlas-itk/pixel/module/module-qc-database-tools/issues
@@ -51,7 +51,7 @@ Requires-Dist: itkdb>=0.6.17
51
51
  Requires-Dist: itksn>=0.4.2
52
52
  Requires-Dist: jsbeautifier
53
53
  Requires-Dist: jsondiff
54
- Requires-Dist: module-qc-data-tools>=1.6.0
54
+ Requires-Dist: module-qc-data-tools>=1.7.2
55
55
  Requires-Dist: packaging
56
56
  Requires-Dist: pandas
57
57
  Requires-Dist: pyarrow
@@ -63,7 +63,7 @@ Requires-Dist: typing-extensions>=4.0; python_version < '3.10'
63
63
  Requires-Dist: urllib3<2,>=1.26.20; 'el7.x86_64' in platform_release
64
64
  Description-Content-Type: text/markdown
65
65
 
66
- # Module QC Database Tools v2.12.0rc0
66
+ # Module QC Database Tools v2.12.1
67
67
 
68
68
  The package to regisiter ITkPixV1.1 modules, and generate YARR configs from ITk
69
69
  production database using `itkdb` API.
@@ -1,4 +1,4 @@
1
- # Module QC Database Tools v2.12.0rc0
1
+ # Module QC Database Tools v2.12.1
2
2
 
3
3
  The package to regisiter ITkPixV1.1 modules, and generate YARR configs from ITk
4
4
  production database using `itkdb` API.
@@ -12,16 +12,63 @@ and this project adheres to
12
12
 
13
13
  **_Changed:_**
14
14
 
15
+ **_Added:_**
16
+
17
+ **_Fixed:_**
18
+
19
+ ## [2.12.1](https://gitlab.cern.ch/atlas-itk/pixel/module/module-qc-database-tools/-/tags/v2.12.1) - 2026-10-14 ## {: #mqdbt-v2.12.1 }
20
+
21
+ **_Changed:_**
22
+
23
+ - require `module-qc-data-tools` >= 1.7.2, which defines the expected `CdrCp`
24
+ value (!171)
25
+ - `run-full-qc` enables all core columns by default when clearing the chip
26
+ configs; `--no-enable-all-cc` keeps the core column settings of the chip
27
+ configs (needs YARR v1.6.4) (!173)
28
+ - `run-full-qc` runs the core column scan after clearing the chip configs, so
29
+ the pixels of bad core columns are masked again, instead of at the start of
30
+ the calibrations (!173, !174)
31
+ - `run-full-qc` runs a throwaway digital scan at the start of the minimum health
32
+ test (!174)
33
+ - `run-full-qc` uploads all YARR scans to LocalDB (`scanConsole -W`), the
34
+ throwaway digital scans and the core column scans without a tag (!174)
35
+ - Always set `CdrCp` to 80 in generated ITkPix v2 chip configs, independent of
36
+ the YARR default (!171)
37
+
38
+ **_Added:_**
39
+
40
+ - `run-full-qc` sets `CdrCp` in the module's chip configs via
41
+ `analysis-check-cdrcp-in-chip-config` from module-qc-analysis-tools (!171)
42
+ - `run-full-qc` checks that module-qc-analysis-tools is installed and recent
43
+ enough before running the QC (!171)
44
+ - review check `check_cdr_cp` that MIN_HEALTH_TEST, TUNING and
45
+ PIXEL_FAILURE_ANALYSIS of ITkPix v2 chips were run with the expected `CdrCp`
46
+ (!171)
47
+ - `--enable-all-cc` option for `run-full-qc` to enable all core columns when
48
+ clearing the chip configs (needs YARR v1.6.4) (!171)
49
+ - `run-full-qc` clears the chip configs before the calibrations (or before the
50
+ minimum health test if the calibrations are not run) instead of before tuning,
51
+ after a throwaway digital scan (!171, !174)
52
+
53
+ ## [2.12.0](https://gitlab.cern.ch/atlas-itk/pixel/module/module-qc-database-tools/-/tags/v2.12.0) - 2026-07-21 ## {: #mqdbt-v2.12.0 }
54
+
55
+ **_Changed:_**
56
+
57
+ - Remove CLI options which should always be default (!168)
15
58
  - Default chip template and configs paths (!167)
16
59
  - Change variables to `chip_template_path` and `default_chip_config_path`
17
60
  - Move default paths to the `Chip` class
18
- - Propagate the `chip_template_path` and `default_chip_config_path` from CLI
19
- through `Module` to `Chip` class
61
+ - Propagate the `chip_template_path` and `default_chip_config_path` through
62
+ `Module` to `Chip` class
20
63
 
21
- **_Added:_**
64
+ ## [2.11.3](https://gitlab.cern.ch/atlas-itk/pixel/module/module-qc-database-tools/-/tags/v2.11.3) - 2026-07-16 ## {: #mqdbt-v2.11.3 }
22
65
 
23
66
  **_Fixed:_**
24
67
 
68
+ - Revert "outsource some default chip configs, add clear-chip-config option
69
+ (!165)" to be compatible with LDB version v2.9.1 on
70
+ `temporary_version_for_triplets` feature branch
71
+
25
72
  ## [2.11.2](https://gitlab.cern.ch/atlas-itk/pixel/module/module-qc-database-tools/-/tags/v2.11.2) - 2026-07-07 ## {: #mqdbt-v2.11.2 }
26
73
 
27
74
  **_Changed:_**
@@ -90,7 +90,7 @@ package.
90
90
  $ python -m venv venv
91
91
  $ source venv/bin/activate
92
92
  $ python -m pip install -U pip
93
- $ python -m pip install -U pip module-qc-database-tools==2.12.0rc0
93
+ $ python -m pip install -U pip module-qc-database-tools==2.12.1
94
94
  ```
95
95
 
96
96
  ### via uv
@@ -99,7 +99,7 @@ $ python -m pip install -U pip module-qc-database-tools==2.12.0rc0
99
99
  $ python -m venv venv
100
100
  $ source venv/bin/activate
101
101
  $ python -m pip install uv
102
- $ uv pip install module-qc-database-tools==2.12.0rc0
102
+ $ uv pip install module-qc-database-tools==2.12.1
103
103
  ```
104
104
 
105
105
  # Usage
@@ -116,6 +116,7 @@ plugins:
116
116
  functions:
117
117
  - module_qc_database_tools.review.checks.check_mqt_version
118
118
  - module_qc_database_tools.review.checks.check_mqat_version
119
+ - module_qc_database_tools.review.checks.check_cdr_cp
119
120
  - module_qc_database_tools.review.checks.check_missing_links_esummary
120
121
  # to add redirects
121
122
  #redirects:
@@ -37,7 +37,7 @@ dependencies = [
37
37
  "arrow",
38
38
  "packaging",
39
39
  "typing_extensions >=4.0; python_version<'3.10'",
40
- "module_qc_data_tools>=1.6.0",
40
+ "module_qc_data_tools>=1.7.2",
41
41
  ]
42
42
  classifiers = [
43
43
  "License :: OSI Approved :: MIT License",
@@ -18,7 +18,7 @@ version_tuple: tuple[int | str, ...]
18
18
  commit_id: str | None
19
19
  __commit_id__: str | None
20
20
 
21
- __version__ = version = '2.12.0rc0'
22
- __version_tuple__ = version_tuple = (2, 12, 0, 'rc0')
21
+ __version__ = version = '2.12.1'
22
+ __version_tuple__ = version_tuple = (2, 12, 1)
23
23
 
24
24
  __commit_id__ = commit_id = None
@@ -12,7 +12,6 @@ from module_qc_data_tools.utils import (
12
12
  get_layer_from_sn,
13
13
  )
14
14
 
15
- import module_qc_database_tools
16
15
  from module_qc_database_tools import db
17
16
  from module_qc_database_tools.chip_config_api import ChipConfigAPI
18
17
  from module_qc_database_tools.cli.globals import CONTEXT_SETTINGS, OPTIONS
@@ -28,16 +27,6 @@ app = typer.Typer(context_settings=CONTEXT_SETTINGS)
28
27
  @app.command()
29
28
  def main(
30
29
  serial_number: str = OPTIONS["serial_number"],
31
- chip_template_path: Path = typer.Option(
32
- None,
33
- "--ch",
34
- "--chipTemplate",
35
- help=f"Path to default chip template from which the chip configs are generated. If nothing is specified here, the default is {module_qc_database_tools.data}/YARR/chip_template.json specified in the 'Chip' class.",
36
- exists=True,
37
- file_okay=True,
38
- readable=True,
39
- resolve_path=True,
40
- ),
41
30
  output_dir: Optional[Path] = typer.Option( # noqa: UP045
42
31
  None,
43
32
  "-o",
@@ -109,21 +98,6 @@ def main(
109
98
  help="Use reversed order of chip ID, e.g. for old L0 linear triplets.",
110
99
  ),
111
100
  config_hw: Path = OPTIONS["config_hw"],
112
- default_chip_config_path: Path = typer.Option(
113
- None,
114
- "--default-chip-config",
115
- help=f"Path to default chip config values from which the chip config are generated. If nothing is specified here, default is {module_qc_database_tools.data}/YARR/default_chip_config.json set in the 'Chip' class.",
116
- exists=True,
117
- file_okay=True,
118
- readable=True,
119
- resolve_path=True,
120
- ),
121
- clear_chip_config: bool = typer.Option(
122
- False,
123
- "--clear",
124
- "--clear-chip-config",
125
- help="Clears threshold and ToT tunings from chip config.",
126
- ),
127
101
  ):
128
102
  """
129
103
  Main executable for generating yarr config.
@@ -177,17 +151,14 @@ def main(
177
151
  connectivity_path = Path(output_dir or "", module.name).joinpath(
178
152
  f"{module.name}_{layer_config}{'_' + suffix if suffix else ''}.json"
179
153
  )
180
- generated_configs = module.generate_config(
154
+ generated_configs = module.generate_config( # pylint: disable=no-value-for-parameter
181
155
  layer_config=layer_config,
182
156
  dp_port=dp_port.value,
183
157
  suffix=suffix,
184
158
  version=version,
185
- chip_template_path=chip_template_path,
186
- default_chip_config_path=default_chip_config_path,
187
159
  speed=speed,
188
160
  reverse=reverse,
189
161
  felix=felix,
190
- clear_chip_config=clear_chip_config,
191
162
  )
192
163
 
193
164
  if output_dir:
@@ -1,5 +1,6 @@
1
1
  from __future__ import annotations
2
2
 
3
+ import importlib.metadata
3
4
  import json
4
5
  import logging
5
6
  import os
@@ -18,9 +19,11 @@ from module_qc_data_tools.utils import (
18
19
  get_config_type_from_connectivity_path,
19
20
  get_layer_from_sn,
20
21
  )
22
+ from packaging.version import Version
21
23
 
22
24
  from module_qc_database_tools.cli.globals import CONTEXT_SETTINGS, OPTIONS, Protocol
23
25
  from module_qc_database_tools.cli.utils import load_localdb_config_from_hw
26
+ from module_qc_database_tools.utils import MIN_MQAT_VERSION
24
27
 
25
28
  app = typer.Typer(context_settings=CONTEXT_SETTINGS)
26
29
 
@@ -28,6 +31,32 @@ app = typer.Typer(context_settings=CONTEXT_SETTINGS)
28
31
  logger = logging.getLogger(__name__)
29
32
 
30
33
 
34
+ def check_mqat_version():
35
+ """
36
+ Check that module-qc-analysis-tools, which is called to analyze the measurements
37
+ and update the chip configs, is installed and at least MIN_MQAT_VERSION.
38
+ """
39
+ try:
40
+ mqat_version = importlib.metadata.version("module-qc-analysis-tools")
41
+ except importlib.metadata.PackageNotFoundError as exc:
42
+ logger.error(
43
+ "module-qc-analysis-tools is not installed. Install module-qc-analysis-tools>=%s to run the full QC.",
44
+ MIN_MQAT_VERSION,
45
+ )
46
+ raise typer.Exit(1) from exc
47
+
48
+ if Version(mqat_version) < Version(MIN_MQAT_VERSION):
49
+ logger.error(
50
+ "module-qc-analysis-tools v%s is older than the required v%s. Update it with: python -m pip install -U 'module-qc-analysis-tools>=%s'",
51
+ mqat_version,
52
+ MIN_MQAT_VERSION,
53
+ MIN_MQAT_VERSION,
54
+ )
55
+ raise typer.Exit(1)
56
+
57
+ logger.info("Using module-qc-analysis-tools v%s.", mqat_version)
58
+
59
+
31
60
  class FullQCConf:
32
61
  """
33
62
  Class to contain all configs and functions to run full QC.
@@ -53,6 +82,7 @@ class FullQCConf:
53
82
  self.LDBPORT = 5000
54
83
  self.PROTOCOL = "http"
55
84
  self.TAGS = []
85
+ self.ENABLE_ALL_CC = True
56
86
 
57
87
  ## fixed
58
88
  ## will be overwritten from HW config
@@ -173,9 +203,11 @@ class FullQCConf:
173
203
 
174
204
  return 0
175
205
 
176
- def run_scan(self, scan_name, scan_output, tag):
206
+ def run_scan(self, scan_name, scan_output, tag=""):
177
207
  """
178
- Function to concatenate commands and run YARR scan
208
+ Function to concatenate commands and run YARR scan.
209
+ The scan is always uploaded to LocalDB (scanConsole -W), with the given tag, or
210
+ without a tag if it is empty.
179
211
  """
180
212
  cmd = [
181
213
  "./bin/scanConsole",
@@ -185,10 +217,10 @@ class FullQCConf:
185
217
  str(self.CONNECTIVITY),
186
218
  "-o",
187
219
  str(scan_output),
188
- "-W",
189
- tag,
190
- "-s",
191
220
  ]
221
+ # -W needs a value; with an empty tag YARR uploads the scan without a tag
222
+ cmd.extend(["-W", tag or ""])
223
+ cmd.append("-s")
192
224
  ## this is needed, otherwise YARR error due to not able to find scan config file e.g. "std_totscan.json -t 6000"
193
225
  cmd.extend(
194
226
  shlex.split(f"{self.YARR}/configs/scans/{self.CHIPTYPE}/{scan_name}")
@@ -205,31 +237,10 @@ class FullQCConf:
205
237
  def cal(self):
206
238
  """
207
239
  Function to only run simple calibration non-YARR scans.
240
+ Runs after reset_chip_config(), which ends with the core column scan.
208
241
  """
209
242
  logger.info("Running simple (calibration) scans...")
210
243
 
211
- # # Run core column scan and save it
212
- scan_output = self.OUTPUT / "data"
213
- scan_output.mkdir(parents=True, exist_ok=True)
214
- try:
215
- subprocess.run(
216
- [
217
- "./bin/scanConsole",
218
- "-r",
219
- str(self.CONTROLLER),
220
- "-c",
221
- str(self.CONNECTIVITY),
222
- "-o",
223
- str(scan_output),
224
- "-s",
225
- f"{self.YARR}/configs/scans/{self.CHIPTYPE}/corecolumnscan.json",
226
- ],
227
- cwd=self.YARR,
228
- check=True,
229
- )
230
- except Exception as e: # pylint: disable=broad-exception-caught
231
- logger.error("Unable to run core column scan: %s", e)
232
-
233
244
  # Perform QC measurements
234
245
  measurements = [
235
246
  "ADC-CALIBRATION",
@@ -245,15 +256,63 @@ class FullQCConf:
245
256
  self.measure(meas)
246
257
  return 0
247
258
 
259
+ def throwaway_digitalscan(self):
260
+ """
261
+ Runs a throwaway digital scan (uploaded to LocalDB without a tag).
262
+ """
263
+ throwaway_output = self.OUTPUT / "throwaway"
264
+ throwaway_output.mkdir(parents=True, exist_ok=True)
265
+ logger.info("Running throwaway digital scan (no tag): %s", throwaway_output)
266
+ self.run_scan("std_digitalscan.json", throwaway_output)
267
+
268
+ def reset_chip_config(self):
269
+ """
270
+ Runs a throwaway digital scan (uploaded to LocalDB without a tag), then resets any
271
+ previous tuning in the chip configs (YARR scripts/clear_chip_config.py, with
272
+ --enable-all-cc unless disabled), and runs a core column scan that masks the
273
+ pixels of bad core columns again.
274
+ Runs before the calibrations, or before the minimum health test if the
275
+ calibrations are not run.
276
+ """
277
+ self.throwaway_digitalscan()
278
+
279
+ clear_cmd = [
280
+ sys.executable, ## A string giving the absolute path of the executable binary for the Python interpreter
281
+ "scripts/clear_chip_config.py",
282
+ "-c",
283
+ str(self.CONNECTIVITY),
284
+ ]
285
+ if self.ENABLE_ALL_CC:
286
+ clear_cmd.append("--enable-all-cc")
287
+ subprocess.run(
288
+ clear_cmd,
289
+ cwd=self.YARR,
290
+ check=True,
291
+ )
292
+
293
+ # Run core column scan and save it
294
+ scan_output = self.OUTPUT / "data"
295
+ scan_output.mkdir(parents=True, exist_ok=True)
296
+ logger.info("Running core column scan: %s", scan_output)
297
+ try:
298
+ self.run_scan("corecolumnscan.json", scan_output)
299
+ except Exception as e: # pylint: disable=broad-exception-caught
300
+ logger.error("Unable to run core column scan: %s", e)
301
+
302
+ return 0
303
+
248
304
  def mht(self):
249
305
  """
250
- Runs all YARR scans in a Minimum Health Test and tags all scans with MHT
306
+ Runs a throwaway digital scan, then all YARR scans in a Minimum Health Test and
307
+ tags all scans with MHT
251
308
  """
252
309
  # Yarr-related Scans
253
310
  scan_output = self.OUTPUT / "data"
254
311
  scan_output.mkdir(parents=True, exist_ok=True)
255
312
 
256
313
  logger.info("Scan output directory: %s", scan_output)
314
+ self.throwaway_digitalscan()
315
+
257
316
  logger.info("Running minimum health test...")
258
317
  scans = [
259
318
  "std_digitalscan.json",
@@ -308,18 +367,6 @@ class FullQCConf:
308
367
 
309
368
  tunings.extend(["std_thresholdscan_hd.json", "std_totscan.json -t 6000"])
310
369
 
311
- ## reset previous tuning before tuning
312
- subprocess.run(
313
- [
314
- sys.executable, ## A string giving the absolute path of the executable binary for the Python interpreter
315
- "scripts/clear_chip_config.py",
316
- "-c",
317
- str(self.CONNECTIVITY),
318
- ],
319
- cwd=self.YARR,
320
- check=True,
321
- )
322
-
323
370
  for scan in tunings:
324
371
  self.run_scan(scan, scan_output, "TUN")
325
372
 
@@ -434,6 +481,11 @@ def main(
434
481
  "--pfa",
435
482
  help="Run scans required for Pixel Failure Analysis.",
436
483
  ),
484
+ enable_all_cc: bool = typer.Option(
485
+ True,
486
+ "--enable-all-cc/--no-enable-all-cc",
487
+ help="Enable all core columns when clearing the chip configs before the minimum health test (YARR scripts/clear_chip_config.py --enable-all-cc, YARR >= v1.6.4). Use --no-enable-all-cc to keep the core column settings of the chip configs.",
488
+ ),
437
489
  # dry_run: bool = OPTIONS["dry_run"],
438
490
  # _verbosity: LogLevel = OPTIONS["verbosity"]
439
491
  ):
@@ -479,6 +531,7 @@ def main(
479
531
  qc.LDBHOST = host or LDBHOST
480
532
  qc.PROTOCOL = protocol or PROTOCOL.value
481
533
  qc.TAGS = list(set(TAGS + config_tags))
534
+ qc.ENABLE_ALL_CC = enable_all_cc
482
535
 
483
536
  if not qc.MODULESN:
484
537
  qc.MODULESN = (
@@ -505,12 +558,20 @@ def main(
505
558
  logger.info("Module connectivity: %s", qc.CONNECTIVITY)
506
559
  logger.info("Output directory: %s", qc.OUTPUT)
507
560
  logger.debug(locals())
561
+ check_mqat_version()
562
+
508
563
  try:
509
564
  _cmd = ["analysis-check-kshunt-in-chip-config", "-c", qc.MODULEDIR]
510
565
  subprocess.run(_cmd, check=True)
511
566
  except Exception as e: # pylint: disable=broad-exception-caught
512
567
  logger.warning("!!! Not able to update k-factors in the chip config %s !!!", e)
513
568
 
569
+ try:
570
+ _cmd = ["analysis-check-cdrcp-in-chip-config", "-c", qc.MODULEDIR]
571
+ subprocess.run(_cmd, check=True)
572
+ except Exception as e: # pylint: disable=broad-exception-caught
573
+ logger.warning("!!! Not able to update CdrCp in the chip config %s !!!", e)
574
+
514
575
  ## if no test specified, then run full QC
515
576
  if not any([iv, cal, mht, tun, pfa]):
516
577
  logger.info("No single tests specified, running full QC.")
@@ -530,12 +591,14 @@ def main(
530
591
  cwd=qc.YARR,
531
592
  check=True,
532
593
  )
594
+ qc.reset_chip_config()
533
595
  qc.cal()
534
596
  qc.mht()
535
597
  qc.tun()
536
598
  qc.pfa()
537
599
  logger.info("Script completed successfully.")
538
600
  else:
601
+ chip_config_reset = False
539
602
  for _index, item in enumerate(_tests):
540
603
  # Run eye diagram only if the test is not IV
541
604
  if item != "iv":
@@ -559,6 +622,10 @@ def main(
559
622
  "%s is a digital module, will not run IV.", qc.MODULESN
560
623
  )
561
624
  continue
625
+ # reset the chip configs once, before the calibrations or the minimum health test
626
+ if item in ("cal", "mht") and not chip_config_reset:
627
+ qc.reset_chip_config()
628
+ chip_config_reset = True
562
629
  exec(f"qc.{item}()") # pylint: disable=exec-used
563
630
 
564
631
 
@@ -13,6 +13,8 @@ import pandas as pd
13
13
  import pymongo.database
14
14
  from bson.objectid import ObjectId
15
15
  from module_qc_data_tools.utils import (
16
+ CDR_CP,
17
+ CDR_CP_CHIP_TYPE,
16
18
  chip_serial_number_to_uid,
17
19
  get_chip_type_from_serial_number,
18
20
  )
@@ -33,6 +35,23 @@ log = logging.getLogger(__name__)
33
35
  # pylint: disable=too-many-lines
34
36
 
35
37
 
38
+ def set_cdr_cp(chip_config, chip_name, chip_type):
39
+ """
40
+ Set CdrCp explicitly in the chip config of a CDR_CP_CHIP_TYPE chip, independent of the YARR default. Other chip types are left unchanged.
41
+ """
42
+ if chip_type != CDR_CP_CHIP_TYPE:
43
+ return
44
+ global_config = chip_config.setdefault("GlobalConfig", {})
45
+ if global_config.get("CdrCp") != CDR_CP:
46
+ log.info(
47
+ "Setting CdrCp for chip %s from %s to %i.",
48
+ chip_name,
49
+ global_config.get("CdrCp", "YARR default"),
50
+ CDR_CP,
51
+ )
52
+ global_config["CdrCp"] = CDR_CP
53
+
54
+
36
55
  class Module:
37
56
  """
38
57
  Module class. Also works with bare module and FE chip.
@@ -695,6 +714,9 @@ class Chip:
695
714
  msg = f"Not able to generate config for chip {self.uid}. Chip configs might not be complete."
696
715
  raise RuntimeError(msg)
697
716
 
717
+ if chip_type in chip_template:
718
+ set_cdr_cp(chip_template[chip_type], self.uid, chip_type)
719
+
698
720
  if felix and module_type == "quad":
699
721
  chip_template[chip_type]["GlobalConfig"]["CmlBias0"] = 800
700
722
  chip_template[chip_type]["GlobalConfig"]["CmlBias1"] = 0
@@ -1011,6 +1033,7 @@ class LocalModule:
1011
1033
 
1012
1034
  current_revision_id = str(config_info.get("current_revision_id"))
1013
1035
  config = config_api.get_config(config_id, current_revision_id, True)
1036
+ set_cdr_cp(config[self.chip_type], chip, self.chip_type)
1014
1037
  configs["chips"].append(config)
1015
1038
 
1016
1039
  # relative path: e.g. L2_warm/0x15499_L2_warm.json
@@ -1,5 +1,10 @@
1
1
  from __future__ import annotations
2
2
 
3
+ from module_qc_data_tools.utils import (
4
+ CDR_CP,
5
+ CDR_CP_CHIP_TYPE,
6
+ get_chip_type_from_serial_number,
7
+ )
3
8
  from packaging.version import Version
4
9
 
5
10
  from module_qc_database_tools.exceptions import SkipCheck
@@ -31,6 +36,11 @@ REQUIREMENTS_ELECTRICAL_TESTS: Set[TestTypeCode] = {
31
36
  REQUIREMENTS_MQT: str = "2.3.0"
32
37
  REQUIREMENTS_YARR: str = "1.5.3"
33
38
  REQUIREMENTS_MQAT: str = "2.2.9rc4"
39
+ REQUIREMENTS_CDR_CP: Dict[TestTypeCode, str] = {
40
+ "MIN_HEALTH_TEST": "MIN_HEALTH_CDR_CP",
41
+ "TUNING": "TUNING_CDR_CP",
42
+ "PIXEL_FAILURE_ANALYSIS": "PIXEL_FAILURE_CDR_CP",
43
+ }
34
44
  REQUIREMENTS_ESUMMARY_LINKS: Set[TestTypeCode] = {
35
45
  "ADC_CALIBRATION",
36
46
  "ANALOG_READBACK",
@@ -285,6 +295,56 @@ check_mqat_version.__doc__ = check_mqat_version.__doc__.format(
285
295
  )
286
296
 
287
297
 
298
+ def _is_cdr_cp_chip(component):
299
+ """
300
+ Whether the front-end chip is of the chip type that CdrCp is set for.
301
+ """
302
+ try:
303
+ chip_type = get_chip_type_from_serial_number(component.serial_number)
304
+ except Exception: # pylint: disable=broad-exception-caught
305
+ return False
306
+ return chip_type == CDR_CP_CHIP_TYPE
307
+
308
+
309
+ @checker
310
+ @onlyif(
311
+ "test_run",
312
+ lambda x: x.test_type in REQUIREMENTS_CDR_CP,
313
+ "not a YARR scan based test",
314
+ )
315
+ @onlyif("component", lambda x: x.component_type == "FE_CHIP", "not a front-end chip")
316
+ @onlyif("component", _is_cdr_cp_chip, f"not an {CDR_CP_CHIP_TYPE} chip")
317
+ def check_cdr_cp(top_component, component, test_run): # noqa: ARG001 # pylint: disable=unused-argument
318
+ """
319
+ Enforce that the YARR scans were run with the expected `CdrCp` register value.
320
+
321
+ !!! success
322
+
323
+ The `CdrCp` value from the chip configs of the YARR scans
324
+ (`MIN_HEALTH_CDR_CP`, `TUNING_CDR_CP`, `PIXEL_FAILURE_CDR_CP`)
325
+ is `{required_cdr_cp}`. Only checked for `{cdr_cp_chip_type}` chips; test
326
+ runs analyzed without this property are skipped.
327
+
328
+ !!! info "Resolution"
329
+
330
+ Set `CdrCp` in the chip configs with `analysis-check-cdrcp-in-chip-config`
331
+ from [mqat][] (or regenerate them with `generateYARRConfig`), and redo the
332
+ YARR scans of the test.
333
+ """
334
+ _only_if_latest_stage_test_run(top_component=top_component, test_run=test_run)
335
+ code = REQUIREMENTS_CDR_CP[test_run.test_type]
336
+ cdr_cp = test_run.properties.get(code)
337
+ if cdr_cp is None:
338
+ msg = f"Skipping as {code} is not defined, the test run was analyzed without it"
339
+ raise SkipCheck(msg)
340
+ assert cdr_cp == CDR_CP, f"{code} is {cdr_cp}, not {CDR_CP}"
341
+
342
+
343
+ check_cdr_cp.__doc__ = check_cdr_cp.__doc__.format(
344
+ required_cdr_cp=CDR_CP, cdr_cp_chip_type=CDR_CP_CHIP_TYPE
345
+ )
346
+
347
+
288
348
  @checker
289
349
  @onlyif("component", lambda x: x.component_type == "SENSOR_TILE", "not a sensor tile")
290
350
  def check_iv_measure_sensor_tile(component):