fix_stanox¶
- pyrcs.converter.fix_stanox(stanox)[source]¶
Standardises the format of a given STANOX (station number).
- Parameters:
stanox (str | int | None) – The STANOX code to be standardised.
- Returns:
The standardised STANOX as a string.
- Return type:
str
Examples:
>>> from pyrcs.converter import fix_stanox >>> fixed_stanox = fix_stanox(stanox=65630) >>> fixed_stanox '65630' >>> fixed_stanox = fix_stanox(stanox='2071') >>> fixed_stanox '02071' >>> fixed_stanox = fix_stanox(stanox=2071) >>> fixed_stanox '02071'