check_code

function of dascore.utils.misc source

check_code(
    value: str ,
    allow_blank: bool = False,
)-> ‘str’

Validate a single code token of an acquisition key.

Parameters

Parameter Description
value The token to validate.
allow_blank If True an empty token is valid, as it is for location codes.