format scale name :prefix: a string that is the beginning of the field name :scale: a scale value (0.25, 0.5, 1.0, 2.0)
(prefix, scale)
| 501 | |
| 502 | |
| 503 | def fmt_scale(prefix, scale): |
| 504 | """ |
| 505 | format scale name |
| 506 | |
| 507 | :prefix: a string that is the beginning of the field name |
| 508 | :scale: a scale value (0.25, 0.5, 1.0, 2.0) |
| 509 | """ |
| 510 | |
| 511 | scale_str = str(float(scale)) |
| 512 | scale_str.replace('.', '') |
| 513 | return f'{prefix}_{scale_str}x' |
no outgoing calls
no test coverage detected