msl-kcdb 1.0.0__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.
- msl_kcdb-1.0.0/.github/workflows/ci.yml +59 -0
- msl_kcdb-1.0.0/.github/workflows/docs.yml +49 -0
- msl_kcdb-1.0.0/.github/workflows/pypi-publish.yml +42 -0
- msl_kcdb-1.0.0/.gitignore +19 -0
- msl_kcdb-1.0.0/CHANGELOG.md +7 -0
- msl_kcdb-1.0.0/LICENSE.txt +21 -0
- msl_kcdb-1.0.0/PKG-INFO +80 -0
- msl_kcdb-1.0.0/README.md +28 -0
- msl_kcdb-1.0.0/cspell.json +71 -0
- msl_kcdb-1.0.0/docs/api/chemistry_biology.md +1 -0
- msl_kcdb-1.0.0/docs/api/general_physics.md +1 -0
- msl_kcdb-1.0.0/docs/api/ionizing_radiation.md +1 -0
- msl_kcdb-1.0.0/docs/api/kcdb.md +9 -0
- msl_kcdb-1.0.0/docs/api/types.md +1 -0
- msl_kcdb-1.0.0/docs/assets/images/favicon.ico +0 -0
- msl_kcdb-1.0.0/docs/examples/chemistry_biology.md +40 -0
- msl_kcdb-1.0.0/docs/examples/index.md +3 -0
- msl_kcdb-1.0.0/docs/examples/ionizing_radiation.md +70 -0
- msl_kcdb-1.0.0/docs/examples/physics.md +142 -0
- msl_kcdb-1.0.0/docs/index.md +36 -0
- msl_kcdb-1.0.0/docs/inherit_attributes.py +45 -0
- msl_kcdb-1.0.0/docs/license.md +5 -0
- msl_kcdb-1.0.0/docs/release-notes.md +1 -0
- msl_kcdb-1.0.0/examples/chemistry_biology.py +35 -0
- msl_kcdb-1.0.0/examples/ionizing_radiation.py +35 -0
- msl_kcdb-1.0.0/examples/physics.py +45 -0
- msl_kcdb-1.0.0/includes/abbreviations.md +7 -0
- msl_kcdb-1.0.0/mkdocs.yml +122 -0
- msl_kcdb-1.0.0/pyproject.toml +187 -0
- msl_kcdb-1.0.0/src/msl/kcdb/__about__.py +9 -0
- msl_kcdb-1.0.0/src/msl/kcdb/__init__.py +14 -0
- msl_kcdb-1.0.0/src/msl/kcdb/_version.py +34 -0
- msl_kcdb-1.0.0/src/msl/kcdb/chemistry_biology.py +107 -0
- msl_kcdb-1.0.0/src/msl/kcdb/general_physics.py +175 -0
- msl_kcdb-1.0.0/src/msl/kcdb/ionizing_radiation.py +206 -0
- msl_kcdb-1.0.0/src/msl/kcdb/kcdb.py +348 -0
- msl_kcdb-1.0.0/src/msl/kcdb/py.typed +1 -0
- msl_kcdb-1.0.0/src/msl/kcdb/types.py +694 -0
- msl_kcdb-1.0.0/tests/test_chemistry_biology.py +218 -0
- msl_kcdb-1.0.0/tests/test_general_physics.py +249 -0
- msl_kcdb-1.0.0/tests/test_helper_class.py +71 -0
- msl_kcdb-1.0.0/tests/test_ionizing_radiation.py +324 -0
- msl_kcdb-1.0.0/tests/test_kcdb_base_class.py +131 -0
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
name: CI
|
|
2
|
+
|
|
3
|
+
on: [push, pull_request]
|
|
4
|
+
|
|
5
|
+
env:
|
|
6
|
+
PY_COLORS: 1
|
|
7
|
+
COLUMNS: 110
|
|
8
|
+
PIP_DISABLE_PIP_VERSION_CHECK: 1
|
|
9
|
+
|
|
10
|
+
jobs:
|
|
11
|
+
test:
|
|
12
|
+
name: Test
|
|
13
|
+
runs-on: ${{ matrix.os }}-latest
|
|
14
|
+
strategy:
|
|
15
|
+
fail-fast: false
|
|
16
|
+
matrix:
|
|
17
|
+
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
|
|
18
|
+
os: [windows, ubuntu, macos]
|
|
19
|
+
steps:
|
|
20
|
+
- name: Checkout repository
|
|
21
|
+
uses: actions/checkout@v4
|
|
22
|
+
- name: Set up Python ${{ matrix.python-version }}
|
|
23
|
+
uses: actions/setup-python@v5
|
|
24
|
+
with:
|
|
25
|
+
python-version: ${{ matrix.python-version }}
|
|
26
|
+
- name: Install uv
|
|
27
|
+
uses: astral-sh/setup-uv@v6
|
|
28
|
+
with:
|
|
29
|
+
enable-cache: false
|
|
30
|
+
- name: Install dependencies
|
|
31
|
+
run: uv sync --python ${{ matrix.python-version }} --no-dev --group test
|
|
32
|
+
- name: Run tests
|
|
33
|
+
run: uv run --python ${{ matrix.python-version }} --no-dev --group test -- pytest
|
|
34
|
+
|
|
35
|
+
lint:
|
|
36
|
+
name: Lint
|
|
37
|
+
runs-on: ubuntu-latest
|
|
38
|
+
env:
|
|
39
|
+
MYPYPATH: src
|
|
40
|
+
steps:
|
|
41
|
+
- name: Checkout repository
|
|
42
|
+
uses: actions/checkout@v4
|
|
43
|
+
- name: Setup uv
|
|
44
|
+
uses: astral-sh/setup-uv@v6
|
|
45
|
+
with:
|
|
46
|
+
enable-cache: false
|
|
47
|
+
python-version: '3.13'
|
|
48
|
+
- name: Spelling
|
|
49
|
+
uses: streetsidesoftware/cspell-action@v6
|
|
50
|
+
with:
|
|
51
|
+
incremental_files_only: false
|
|
52
|
+
- name: Linting
|
|
53
|
+
run: uv run -- ruff check --force-exclude --no-fix .
|
|
54
|
+
- name: Formatting
|
|
55
|
+
run: uv run -- ruff format --force-exclude --check .
|
|
56
|
+
- name: Typing:BasedPyright
|
|
57
|
+
run: uv run -- basedpyright .
|
|
58
|
+
- name: Typing:MyPy
|
|
59
|
+
run: uv run -- mypy .
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
name: Docs
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: ['main']
|
|
6
|
+
tags:
|
|
7
|
+
- '*'
|
|
8
|
+
pull_request:
|
|
9
|
+
branches: ['main']
|
|
10
|
+
|
|
11
|
+
permissions:
|
|
12
|
+
contents: write
|
|
13
|
+
pages: write
|
|
14
|
+
id-token: write
|
|
15
|
+
|
|
16
|
+
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
|
|
17
|
+
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
|
|
18
|
+
concurrency:
|
|
19
|
+
group: 'pages'
|
|
20
|
+
cancel-in-progress: false
|
|
21
|
+
|
|
22
|
+
jobs:
|
|
23
|
+
deploy:
|
|
24
|
+
name: Build and deploy documentation
|
|
25
|
+
runs-on: ubuntu-latest
|
|
26
|
+
steps:
|
|
27
|
+
- name: Checkout repository
|
|
28
|
+
uses: actions/checkout@v4
|
|
29
|
+
with:
|
|
30
|
+
fetch-depth: 0 # fetch all commits/branches
|
|
31
|
+
- name: Install uv
|
|
32
|
+
uses: astral-sh/setup-uv@v6
|
|
33
|
+
with:
|
|
34
|
+
enable-cache: false
|
|
35
|
+
- name: Configure Git for GitHub Actions bot
|
|
36
|
+
run: |
|
|
37
|
+
git config --local user.name "github-actions[bot]"
|
|
38
|
+
git config --local user.email "github-actions[bot]@users.noreply.github.com"
|
|
39
|
+
- name: Validate docs
|
|
40
|
+
run: uv run --only-group doc -- mkdocs build --strict
|
|
41
|
+
- name: Deploy dev docs
|
|
42
|
+
if: github.ref == 'refs/heads/main'
|
|
43
|
+
run: |
|
|
44
|
+
uv run --only-group doc -- mike deploy --push --update-aliases dev
|
|
45
|
+
- name: Deploy release docs
|
|
46
|
+
if: github.ref_type == 'tag'
|
|
47
|
+
run: |
|
|
48
|
+
uv run --only-group doc -- mike deploy --push --update-aliases ${{ github.ref_name }} latest
|
|
49
|
+
uv run --only-group doc -- mike set-default --push latest
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
name: Build then Publish to PyPI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
release:
|
|
5
|
+
types: [published]
|
|
6
|
+
|
|
7
|
+
jobs:
|
|
8
|
+
build-packages:
|
|
9
|
+
name: Build distribution packages
|
|
10
|
+
runs-on: ubuntu-latest
|
|
11
|
+
steps:
|
|
12
|
+
- name: Checkout repository
|
|
13
|
+
uses: actions/checkout@v4
|
|
14
|
+
- name: Install uv
|
|
15
|
+
uses: astral-sh/setup-uv@v6
|
|
16
|
+
with:
|
|
17
|
+
enable-cache: false
|
|
18
|
+
- name: Build a binary wheel and a source tarball
|
|
19
|
+
run: uv build
|
|
20
|
+
- name: Store the distribution packages
|
|
21
|
+
uses: actions/upload-artifact@v4
|
|
22
|
+
with:
|
|
23
|
+
name: python-package-distributions
|
|
24
|
+
path: dist/
|
|
25
|
+
|
|
26
|
+
publish:
|
|
27
|
+
name: Publish distributions to PyPI
|
|
28
|
+
needs: build-packages
|
|
29
|
+
runs-on: ubuntu-latest
|
|
30
|
+
environment:
|
|
31
|
+
name: pypi
|
|
32
|
+
url: https://pypi.org/p/msl-kcdb
|
|
33
|
+
permissions:
|
|
34
|
+
id-token: write # IMPORTANT: mandatory for trusted publishing
|
|
35
|
+
steps:
|
|
36
|
+
- name: Download the stored distributions
|
|
37
|
+
uses: actions/download-artifact@v4
|
|
38
|
+
with:
|
|
39
|
+
name: python-package-distributions
|
|
40
|
+
path: dist/
|
|
41
|
+
- name: Publish distributions to PyPI
|
|
42
|
+
uses: pypa/gh-action-pypi-publish@release/v1
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# Global directories
|
|
2
|
+
__pycache__/
|
|
3
|
+
|
|
4
|
+
# Global files
|
|
5
|
+
*.py[codz]
|
|
6
|
+
|
|
7
|
+
# Root directories
|
|
8
|
+
/.cache/
|
|
9
|
+
/.idea/
|
|
10
|
+
/.vscode/
|
|
11
|
+
/.venv/
|
|
12
|
+
/site/
|
|
13
|
+
/venv/
|
|
14
|
+
|
|
15
|
+
# Root files
|
|
16
|
+
/uv.lock
|
|
17
|
+
|
|
18
|
+
# Auto-generated during builds
|
|
19
|
+
/src/msl/kcdb/_version.py
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025, Measurement Standards Laboratory of New Zealand
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
msl_kcdb-1.0.0/PKG-INFO
ADDED
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: msl-kcdb
|
|
3
|
+
Version: 1.0.0
|
|
4
|
+
Summary: Search the BIPM key comparison database (KCDB).
|
|
5
|
+
Project-URL: Changelog, https://mslnz.github.io/msl-kcdb/about/release-notes/
|
|
6
|
+
Project-URL: Documentation, https://mslnz.github.io/msl-kcdb/
|
|
7
|
+
Project-URL: Homepage, https://mslnz.github.io/msl-kcdb/
|
|
8
|
+
Project-URL: Issues, https://github.com/MSLNZ/msl-kcdb/issues
|
|
9
|
+
Project-URL: Source, https://github.com/MSLNZ/msl-kcdb
|
|
10
|
+
Author-email: Measurement Standards Laboratory of New Zealand <info@measurement.govt.nz>
|
|
11
|
+
Maintainer-email: Joseph Borbely <joseph.borbely@measurement.govt.nz>
|
|
12
|
+
License: MIT License
|
|
13
|
+
|
|
14
|
+
Copyright (c) 2025, Measurement Standards Laboratory of New Zealand
|
|
15
|
+
|
|
16
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
17
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
18
|
+
in the Software without restriction, including without limitation the rights
|
|
19
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
20
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
21
|
+
furnished to do so, subject to the following conditions:
|
|
22
|
+
|
|
23
|
+
The above copyright notice and this permission notice shall be included in all
|
|
24
|
+
copies or substantial portions of the Software.
|
|
25
|
+
|
|
26
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
27
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
28
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
29
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
30
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
31
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
32
|
+
SOFTWARE.
|
|
33
|
+
License-File: LICENSE.txt
|
|
34
|
+
Keywords: API,BIPM,KCDB,MSL
|
|
35
|
+
Classifier: Development Status :: 4 - Beta
|
|
36
|
+
Classifier: Intended Audience :: Developers
|
|
37
|
+
Classifier: Intended Audience :: Science/Research
|
|
38
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
39
|
+
Classifier: Operating System :: OS Independent
|
|
40
|
+
Classifier: Programming Language :: Python
|
|
41
|
+
Classifier: Programming Language :: Python :: 3
|
|
42
|
+
Classifier: Programming Language :: Python :: 3.8
|
|
43
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
44
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
45
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
46
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
47
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
48
|
+
Classifier: Topic :: Scientific/Engineering
|
|
49
|
+
Classifier: Topic :: Software Development
|
|
50
|
+
Requires-Python: >=3.8
|
|
51
|
+
Description-Content-Type: text/markdown
|
|
52
|
+
|
|
53
|
+
# MSL-KCDB
|
|
54
|
+
|
|
55
|
+
[](https://github.com/MSLNZ/msl-kcdb/actions/workflows/ci.yml)
|
|
56
|
+
[](https://github.com/MSLNZ/msl-kcdb/actions/workflows/docs.yml)
|
|
57
|
+
[](https://pypi.org/project/msl-kcdb/)
|
|
58
|
+
[](https://pypi.org/project/msl-kcdb/)
|
|
59
|
+
|
|
60
|
+
## Overview
|
|
61
|
+
Search the key comparison database, [KCDB](https://www.bipm.org/kcdb/), that is provided by the International Bureau of Weights and Measures, [BIPM](https://www.bipm.org/en/).
|
|
62
|
+
|
|
63
|
+
## Install
|
|
64
|
+
`msl-kcdb` is available at the [Python Package Index](https://pypi.org/project/msl-kcdb/) and can be installed with `pip`
|
|
65
|
+
|
|
66
|
+
```console
|
|
67
|
+
pip install msl-kcdb
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
## User Guide
|
|
71
|
+
Three classes are available to search the three metrology domains
|
|
72
|
+
|
|
73
|
+
* [ChemistryBiology](https://mslnz.github.io/msl-kcdb/latest/api/chemistry_biology/) — Search the Chemistry and Biology database
|
|
74
|
+
* [Physics](https://mslnz.github.io/msl-kcdb/latest/api/general_physics/) — Search the General Physics database
|
|
75
|
+
* [Radiation](https://mslnz.github.io/msl-kcdb/latest/api/ionizing_radiation/) — Search the Ionizing Radiation database
|
|
76
|
+
|
|
77
|
+
See the [examples](https://mslnz.github.io/msl-kcdb/latest/examples/) on how to use each of these classes to extract information from the KCDB. Example scripts are also available in the `msl-kcdb` [repository](https://github.com/MSLNZ/msl-kcdb/tree/main/examples).
|
|
78
|
+
|
|
79
|
+
## Documentation
|
|
80
|
+
The documentation for `msl-kcdb` is available [here](https://mslnz.github.io/msl-kcdb/).
|
msl_kcdb-1.0.0/README.md
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# MSL-KCDB
|
|
2
|
+
|
|
3
|
+
[](https://github.com/MSLNZ/msl-kcdb/actions/workflows/ci.yml)
|
|
4
|
+
[](https://github.com/MSLNZ/msl-kcdb/actions/workflows/docs.yml)
|
|
5
|
+
[](https://pypi.org/project/msl-kcdb/)
|
|
6
|
+
[](https://pypi.org/project/msl-kcdb/)
|
|
7
|
+
|
|
8
|
+
## Overview
|
|
9
|
+
Search the key comparison database, [KCDB](https://www.bipm.org/kcdb/), that is provided by the International Bureau of Weights and Measures, [BIPM](https://www.bipm.org/en/).
|
|
10
|
+
|
|
11
|
+
## Install
|
|
12
|
+
`msl-kcdb` is available at the [Python Package Index](https://pypi.org/project/msl-kcdb/) and can be installed with `pip`
|
|
13
|
+
|
|
14
|
+
```console
|
|
15
|
+
pip install msl-kcdb
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## User Guide
|
|
19
|
+
Three classes are available to search the three metrology domains
|
|
20
|
+
|
|
21
|
+
* [ChemistryBiology](https://mslnz.github.io/msl-kcdb/latest/api/chemistry_biology/) — Search the Chemistry and Biology database
|
|
22
|
+
* [Physics](https://mslnz.github.io/msl-kcdb/latest/api/general_physics/) — Search the General Physics database
|
|
23
|
+
* [Radiation](https://mslnz.github.io/msl-kcdb/latest/api/ionizing_radiation/) — Search the Ionizing Radiation database
|
|
24
|
+
|
|
25
|
+
See the [examples](https://mslnz.github.io/msl-kcdb/latest/examples/) on how to use each of these classes to extract information from the KCDB. Example scripts are also available in the `msl-kcdb` [repository](https://github.com/MSLNZ/msl-kcdb/tree/main/examples).
|
|
26
|
+
|
|
27
|
+
## Documentation
|
|
28
|
+
The documentation for `msl-kcdb` is available [here](https://mslnz.github.io/msl-kcdb/).
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://raw.githubusercontent.com/streetsidesoftware/cspell/main/cspell.schema.json",
|
|
3
|
+
"version": "0.2",
|
|
4
|
+
"language": "en-GB",
|
|
5
|
+
"languageId": "python",
|
|
6
|
+
"useGitignore": true,
|
|
7
|
+
"dictionaries": [
|
|
8
|
+
"!aws",
|
|
9
|
+
"!companies",
|
|
10
|
+
"!cryptocurrencies",
|
|
11
|
+
"!web-services"
|
|
12
|
+
],
|
|
13
|
+
"cache": {
|
|
14
|
+
"cacheFormat": "universal",
|
|
15
|
+
"cacheLocation": ".cache/.cspellcache",
|
|
16
|
+
"cacheStrategy": "content",
|
|
17
|
+
"useCache": true
|
|
18
|
+
},
|
|
19
|
+
"ignorePaths": [
|
|
20
|
+
"cspell.json",
|
|
21
|
+
"mkdocs.yml",
|
|
22
|
+
"pyproject.toml"
|
|
23
|
+
],
|
|
24
|
+
"words": [
|
|
25
|
+
"Aalto",
|
|
26
|
+
"AFRIMETS",
|
|
27
|
+
"AIST",
|
|
28
|
+
"analyzer",
|
|
29
|
+
"APMP",
|
|
30
|
+
"artifact",
|
|
31
|
+
"Atten",
|
|
32
|
+
"BFKH",
|
|
33
|
+
"BIPM",
|
|
34
|
+
"Calibri",
|
|
35
|
+
"CENAM",
|
|
36
|
+
"CIEMAT",
|
|
37
|
+
"COOMET",
|
|
38
|
+
"CSIC",
|
|
39
|
+
"dosemeter",
|
|
40
|
+
"EURAMET",
|
|
41
|
+
"Fluence",
|
|
42
|
+
"griffe",
|
|
43
|
+
"IDMS",
|
|
44
|
+
"INER",
|
|
45
|
+
"ININ",
|
|
46
|
+
"Inorg",
|
|
47
|
+
"INTI",
|
|
48
|
+
"kcdb",
|
|
49
|
+
"kernelspec",
|
|
50
|
+
"KRISS",
|
|
51
|
+
"LAMETRO",
|
|
52
|
+
"LNHB",
|
|
53
|
+
"Mesures",
|
|
54
|
+
"METAS",
|
|
55
|
+
"ndash",
|
|
56
|
+
"NMIJ",
|
|
57
|
+
"NMIM",
|
|
58
|
+
"NMISA",
|
|
59
|
+
"NRSL",
|
|
60
|
+
"OTDR",
|
|
61
|
+
"Poids",
|
|
62
|
+
"Pycnometric",
|
|
63
|
+
"rmos",
|
|
64
|
+
"Scatt",
|
|
65
|
+
"STUK",
|
|
66
|
+
"SYKE",
|
|
67
|
+
"VNIIFTRI",
|
|
68
|
+
"VNIIM",
|
|
69
|
+
"VNIIOFI"
|
|
70
|
+
]
|
|
71
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
::: msl.kcdb.chemistry_biology
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
::: msl.kcdb.general_physics
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
::: msl.kcdb.ionizing_radiation
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
::: msl.kcdb.types
|
|
Binary file
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# Chemistry and Biology
|
|
2
|
+
|
|
3
|
+
Example script showing how to use the [ChemistryBiology][msl.kcdb.chemistry_biology.ChemistryBiology] class to extract information from the KCDB.
|
|
4
|
+
|
|
5
|
+
## Script
|
|
6
|
+
|
|
7
|
+
```python
|
|
8
|
+
--8<-- "examples/chemistry_biology.py"
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Output
|
|
12
|
+
|
|
13
|
+
Running this script outputs the following, although, some values may change from what you observe when you run this script since information in the KCDB is continually changing.
|
|
14
|
+
|
|
15
|
+
```
|
|
16
|
+
Getting all reference data for Chemistry and Biology...
|
|
17
|
+
There are 105 countries
|
|
18
|
+
There are 1725 analytes
|
|
19
|
+
There are 15 categories
|
|
20
|
+
All analytes related to 'boron'...
|
|
21
|
+
Analyte(id=2, label='boron', value='boron')
|
|
22
|
+
All NMIs that have capabilities with 'boron' analytes...
|
|
23
|
+
NIST (Advanced materials): 8395201
|
|
24
|
+
NIST (Advanced materials): 8395202
|
|
25
|
+
NIST (Advanced materials): 8395206
|
|
26
|
+
NIST (Inorganic solutions): 8391106
|
|
27
|
+
KRISS (Inorganic solutions): 105-02-BX2
|
|
28
|
+
BAM (Inorganic solutions): InorgSol-7
|
|
29
|
+
BAM (Inorganic solutions): InorgSol-15
|
|
30
|
+
BAM (Inorganic solutions): InorgSol-16
|
|
31
|
+
SMU (Inorganic solutions): I-10-20
|
|
32
|
+
UME (Water): G3IK-3110
|
|
33
|
+
NIM (Water): Water-2
|
|
34
|
+
VNIIM (Water): 5.1-06
|
|
35
|
+
NMIJ AIST (Water): 5-01-05
|
|
36
|
+
NMIJ AIST (Food): 7505-02
|
|
37
|
+
NRC (Food): MEF-37
|
|
38
|
+
NRC (Water): TEW42
|
|
39
|
+
NMIJ AIST (Inorganic solutions): NMIJ CRM 3627
|
|
40
|
+
```
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
# Examples
|
|
2
|
+
|
|
3
|
+
Example scripts showing how to use the [ChemistryBiology][msl.kcdb.chemistry_biology.ChemistryBiology], [Physics][msl.kcdb.general_physics.Physics] and [Radiation][msl.kcdb.ionizing_radiation.Radiation] classes. Example scripts are also available in the `msl-kcdb` [repository](https://github.com/MSLNZ/msl-kcdb/tree/main/examples){:target="_blank"}.
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
# Ionizing Radiation
|
|
2
|
+
|
|
3
|
+
Example script showing how to use the [Radiation][msl.kcdb.ionizing_radiation.Radiation] class to extract information from the KCDB.
|
|
4
|
+
|
|
5
|
+
## Script
|
|
6
|
+
|
|
7
|
+
```python
|
|
8
|
+
--8<-- "examples/ionizing_radiation.py"
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Output
|
|
12
|
+
|
|
13
|
+
Running this script outputs the following, although, some values may change from what you observe when you run this script since information in the KCDB is continually changing.
|
|
14
|
+
|
|
15
|
+
```
|
|
16
|
+
Getting all reference data for Ionizing radiation...
|
|
17
|
+
There are 1 metrology areas
|
|
18
|
+
There are 3 branches
|
|
19
|
+
There are 171 nuclides
|
|
20
|
+
There are 45 quantities
|
|
21
|
+
There are 25 mediums
|
|
22
|
+
There are 33 sources
|
|
23
|
+
The following NMIs have capabilities to perform measurements with Beta radiation...
|
|
24
|
+
NRSL/INER (Beta source): Sr-90/Y-90, 49 MBq (2001), ISO-6980
|
|
25
|
+
Nuclear Malaysia (Personal dosimeter): ISO-6980, 1.08 GBq (2007), 11 cm to 50 cm distance
|
|
26
|
+
Nuclear Malaysia (Personal dosimeter): ISO-6980, 418 MBq (2007), 11 cm to 50 cm distance
|
|
27
|
+
BFKH (Dosimeter or customers artifact): ISO 6980, Pm-147, Kr-85, Sr-90/Y-90
|
|
28
|
+
NMIJ AIST (Ionization chamber): Sr-90/Y-90, 460 MBq (2006.2), ISO 6980
|
|
29
|
+
NMIJ AIST (Ionization chamber): Kr-85, 3.7 GBq (2006.2), ISO 6980
|
|
30
|
+
NMIJ AIST (Ionization chamber): Pm-147, 3.7 GBq (2006.2), ISO 6980
|
|
31
|
+
VNIIFTRI (Chemical dosimeters): 0.01 Gy s<SUP>-1</SUP> to 10 Gy s<SUP>-1</SUP> (source, 2.96 10<SUP>12</SUP> Bq, distance, 30 mm to 300 mm)
|
|
32
|
+
VNIIFTRI (Chemical dosimeters): 0.01 Gy s<SUP>-1</SUP> to 10 Gy s<SUP>-1</SUP> (source, 2.96 10<SUP>12</SUP> Bq, distance, 30 mm to 300 mm)
|
|
33
|
+
VNIIFTRI (Chemical dosimeters): 0.01 Gy s<SUP>-1</SUP> to 10 Gy s<SUP>-1</SUP> (source, 2.96 10<SUP>12</SUP> Bq, distance, 30 mm to 300 mm)
|
|
34
|
+
VNIIFTRI (Chemical dosimeters): 0.01 Gy s<SUP>-1</SUP> to 10 Gy s<SUP>-1</SUP> (source, 2.96 10<SUP>12</SUP> Bq, distance, 30 mm to 300 mm)
|
|
35
|
+
VNIIFTRI (Chemical dosimeters): 0.01 Gy s<SUP>-1</SUP> to 10 Gy s<SUP>-1</SUP> (source, 2.96 10<SUP>12</SUP> Bq, distance, 30 mm to 300 mm)
|
|
36
|
+
VNIIFTRI (Calibrated field from Sr-90/Y-90 radionuclide sources): 0.01 Gy s<SUP>-1</SUP> to 10 Gy s<SUP>-1</SUP>
|
|
37
|
+
VNIIM (Dosimeter): ISO 6980
|
|
38
|
+
VNIIM (Dosimeter): ISO 6980
|
|
39
|
+
VNIIM (Dosimeter): ISO 6980
|
|
40
|
+
VNIIM (Dosimeter): ISO 6980
|
|
41
|
+
VNIIM (Dosimeter): ISO 6980
|
|
42
|
+
VNIIM (Dosimeter): ISO 6980
|
|
43
|
+
VNIIM (Beta ray reference source): ISO 6980
|
|
44
|
+
NPL (Ophthalmic applicators): Sr-90 or Ru-106 beta rays
|
|
45
|
+
CIEMAT (Radiation protection dosemeter): Sr-90/Y-90 with ISO 6980 filter. Calibration at 30 cm. Levels on July 17, 2006.
|
|
46
|
+
CIEMAT (Radiation protection dosemeter): Sr-90/Y-90 without ISO 6980 filter. Calibration at 11, 20, 30, 50 cm. Levels on July 17, 2006.
|
|
47
|
+
CIEMAT (Radiation protection dosemeter): Kr-85 with ISO 6980 filter. Calibration at 30 cm. Levels on July 16, 2006.
|
|
48
|
+
CIEMAT (Dosimeter): Sr-90/Y-90 with ISO 6980 filter. Calibration at 30 cm. Levels on July 17, 2006. Integration time 120 s - 23 h.
|
|
49
|
+
CIEMAT (Dosimeter): Kr-85 with ISO 6980 filter. Calibration at 30 cm. Levels on July 16, 2006. Integration time 120 s - 23 h.
|
|
50
|
+
NIST (Extrapolation chambers): Sr-90/Y-90. Conform to ISO 6980 (1996) and ISO 6980-2 (2004)
|
|
51
|
+
NIST (Beta sources): Sr-90/Y-90. Conform to ISO 6980 (1996) and ISO 6980-2 (2004)
|
|
52
|
+
NIST (Personal dosimeter (TLD)): Sr-90/Y-90. Conform to ISO 6980 (1996) and ISO 6980-2 (2004)
|
|
53
|
+
NIST (Extrapolation chambers): Kr-85. Conform to ISO 6980 (1996) and ISO 6980-2 (2004)
|
|
54
|
+
NIST (Beta sources): Kr-85. Conform to ISO 6980 (1996) and ISO 6980-2 (2004)
|
|
55
|
+
NIST (Personal dosimeter (TLD)): Kr-85. Conform to ISO 6980 (1996) and ISO 6980-2 (2004)
|
|
56
|
+
ININ (Dosemeter): ISO 6980, Sr-90/Y-90
|
|
57
|
+
ININ (Personal dosimeter): ISO 6980, Sr-90/Y-90
|
|
58
|
+
LNE-LNHB (Personal dosimeter): ISO 6980, Pm-147, Kr-85, Sr-90/Y-90
|
|
59
|
+
LNE-LNHB (Personal dosimeter): ISO 6980, Pm-147, Kr-85, Sr-90/Y-90
|
|
60
|
+
LNE-LNHB (Dosemeter): ISO 6980, Pm-147, Kr-85, Sr-90/Y-90
|
|
61
|
+
LNE-LNHB (Dosemeter): ISO 6980, Pm-147, Kr-85, Sr-90/Y-90
|
|
62
|
+
LNE-LNHB (Dosemeter): ISO 6980, Pm-147, Kr-85, Sr-90/Y-90
|
|
63
|
+
LNE-LNHB (Dosemeter): ISO 6980, Pm-147, Kr-85, Sr-90/Y-90
|
|
64
|
+
PTB (Radiation source, ionization chamber or directional dosemeter or personal dosimeter): Beta radiation reference source: Pm-147 (0.22 MeV) to Ru-106 (3.5 MeV); conversion coefficients from absorbed dose to operational quantities based on measurements and Monte Carlo transport simulations
|
|
65
|
+
KRISS (Personal dosimeter): Sr-90/Y-90, ISO 6980, 1.85 GBq (1994), 74 MBq (1994)
|
|
66
|
+
KRISS (Ionization chamber): Sr-90/Y-90, ISO 6980, 1.85 GBq (1994), 74 MBq (1994)
|
|
67
|
+
KRISS (Beta source): Sr-90/Y-90, ISO 6980
|
|
68
|
+
KRISS (Protection level dosemeter): Sr-90/Y-90, ISO 6980, 1.85 GBq (1994), 74 MBq (1994)
|
|
69
|
+
STUK (Beta dosimeters and other targets): Sr-90/Y-90 and Kr-85
|
|
70
|
+
```
|