fix_num_stanox¶
-
pyrcs.utils.
fix_num_stanox
(stanox_code)[source]¶ Fix ‘STANOX’ if it is loaded as numbers.
- Parameters
stanox_code (str or int) – STANOX code
- Returns
standard STANOX code
- Return type
str
Examples:
>>> from pyrcs.utils import fix_num_stanox >>> stanox = 65630 >>> stanox_ = fix_num_stanox(stanox) >>> type(stanox_) <class 'str'> >>> stanox = 2071 >>> stanox_ = fix_num_stanox(stanox) >>> print(stanox_) 02071