Ionizing Radiation
Search the Ionizing Radiation database.
Radiation
¤
Radiation(timeout=30)
Bases: KCDB
Ionizing Radiation class.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
timeout
|
float | None
|
The maximum number of seconds to wait for a response from the KCDB server. |
30
|
BASE_URL
class-attribute
instance-attribute
¤
BASE_URL = 'https://www.bipm.org/api/kcdb'
The base url to the KCDB API.
DOMAIN
class-attribute
instance-attribute
¤
DOMAIN = Domain(code="RADIATION", name="Ionizing radiation")
The Ionizing Radiation domain.
MAX_PAGE_SIZE
class-attribute
instance-attribute
¤
MAX_PAGE_SIZE = 10000
The maximum number of elements that can be returned in a single KCDB request.
timeout
property
writable
¤
timeout
The timeout value, in seconds, to use for a KCDB request.
Returns:
Type | Description |
---|---|
float | None
|
The maximum number of seconds to wait for a response from the KCDB server. If |
branches
¤
branches(metrology_area)
Return all Ionizing Radiation branches for the specified metrology area.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
metrology_area
|
MetrologyArea
|
The metrology area to return the branches for. |
required |
Returns:
Type | Description |
---|---|
list[Branch]
|
A list of Branches. |
countries
¤
countries()
domains
¤
domains()
filter
staticmethod
¤
filter(data, pattern, *, flags=0)
Filter the reference data based on a pattern search.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
data
|
Iterable[T]
|
An iterable of a ReferenceData subclass. |
required |
pattern
|
str
|
A regular-expression pattern to use to filter results.
Uses the |
required |
flags
|
int
|
Pattern flags passed to re.compile. |
0
|
Returns:
Type | Description |
---|---|
list[T]
|
The filtered reference data. |
get
¤
get(url, *, json=None, params=None)
Send a GET request to the KCDB server.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
url
|
str
|
The URL for the request. |
required |
json
|
dict[str, bool | int | str | list[str]] | None
|
A JSON-serializable object to include in the body of the request. |
None
|
params
|
dict[str, int | str] | None
|
Query parameters to include in the URL. |
None
|
Returns:
Type | Description |
---|---|
Response
|
The response. |
mediums
¤
mediums(branch)
metrology_areas
¤
metrology_areas()
non_ionizing_quantities
¤
non_ionizing_quantities()
Return all non-Ionizing Radiation quantities.
Returns:
Type | Description |
---|---|
list[NonIonizingQuantity]
|
A list of NonIonizingQuantity's. |
nuclides
¤
nuclides()
post
¤
post(url, *, json=None, params=None)
Send a POST request to the KCDB server.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
url
|
str
|
The URL for the request. |
required |
json
|
dict[str, bool | int | str | list[str]] | None
|
A JSON-serializable object to include in the body of the request. |
None
|
params
|
dict[str, int | str] | None
|
Query parameters to include in the URL. |
None
|
Returns:
Type | Description |
---|---|
Response
|
The response. |
quantities
¤
quantities(branch)
quick_search
¤
quick_search(
*,
excluded_filters=None,
included_filters=None,
keywords=None,
page=0,
page_size=100,
show_table=False
)
Perform a quick search.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
excluded_filters
|
Iterable[str] | None
|
Excluded filters. Example: |
None
|
included_filters
|
Iterable[str] | None
|
Included filters. Example: |
None
|
keywords
|
str | None
|
Search keywords in elasticsearch format. Example: |
None
|
page
|
int
|
Page number requested (0 means first page). |
0
|
page_size
|
int
|
Maximum number of elements in a page (maximum value is 10000). |
100
|
show_table
|
bool
|
Set to |
False
|
Returns:
Type | Description |
---|---|
ResultsQuickSearch
|
The CMC quick-search results. |
search
¤
search(
*,
branch=None,
countries=None,
keywords=None,
medium=None,
metrology_area="RI",
nuclide=None,
page=0,
page_size=100,
public_date_from=None,
public_date_to=None,
quantity=None,
show_table=False,
source=None
)
Perform an Ionizing Radiation search.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
branch
|
str | Branch | None
|
Branch label. Example: |
None
|
countries
|
str | Country | Iterable[str | Country] | None
|
Country label(s). Example: |
None
|
keywords
|
str | None
|
Search keywords in elasticsearch format. Example: |
None
|
medium
|
str | Medium | None
|
Medium label. Example: |
None
|
metrology_area
|
str | MetrologyArea
|
Metrology area label. Example: |
'RI'
|
nuclide
|
str | Nuclide | None
|
Nuclide label. Example: |
None
|
page
|
int
|
Page number requested (0 means first page). |
0
|
page_size
|
int
|
Maximum number of elements in a page (maximum value is 10000). |
100
|
public_date_from
|
str | date | None
|
Minimal publication date. Example: |
None
|
public_date_to
|
str | date | None
|
Maximal publication date. Example: |
None
|
quantity
|
str | Quantity | None
|
Quantity label. Example: |
None
|
show_table
|
bool
|
Set to |
False
|
source
|
str | Source | None
|
Source label. Example: |
None
|
Returns:
Type | Description |
---|---|
ResultsRadiation
|
The CMC results for Ionizing Radiation. |