Skip to content

Physicalisch-Technische Bundesanstalt

While working at PTB I collaborated on multiple Open-Source projects, all of them related with the DCC (Digital Calibration Certificate) project.

Dcc-Json Toolkit

Repository Role Release
GitLab (PTB) Creator PyPI Release

The goal of dcc-json-toolkit is to present a set of tools that will prevail to be used with any new XSD release. By scanning the used schema version, what the package offers is:

  • Caching locally any released dcc.xsd file, together with all its required imports.
  • Validation of any DCC file, printing all the possible issues it has.
  • Bidirectional conversion XML-JSON for DCC files.

DCC Quantities

Repository Role Release
GitLab (PTB) Owner PyPI Release

dccQuantities is a project oriented to all developers or researchers that require to work with a DCC table. The key features that the library provides are:

  • DCC XML Parsing & Serialization: Allowing to read tables from XML files and to export any new created or modified data.
  • Uncertainty & Unit Awareness: Ensure uncertainty propagation using metas_unclib, as well as the correct unit propagation using dsiUnits.
  • Object‑Oriented Arithmetic: Allowing any math operation among Quantities (table data).

D-SI Units

Repository Role Release
GitLab (PTB) Maintainer PyPI Version

dsiUnits is a python library with the goal of working with digital SI units, focused on the rules stated at the BIPM brochure. This defines the cases of:

  • Initializing a unit base on a given raw string.
  • Allow mathematical operation over the units to obtain a new unit.
  • Allow SIRP and LaTex representation of any unit.
  • Simplify any complex unit to the tree conformed by the SI base units.

Example DCCs

Repository Role Tech
GitLab (PTB) Creator JavaScript HTML5 CSS

One previous persistent issue was that the example/open-source DCCs were complicated to be found. The first goal of the project was to present an interface which would hold all DCCs with open-source license.

The best way to comprehend the status and behaviour of the database is to see the deployed GitLab-pages and interact with it:
https://gitlab-pages.ptb.de/digitaldynamicmeasurement/docs/example-dccs/