(x: bytes | str)
| 40 | |
| 41 | |
| 42 | def _to_int(x: bytes | str) -> int: |
| 43 | # Some AFM files have floats where we are expecting ints -- there is |
| 44 | # probably a better way to handle this (support floats, round rather than |
| 45 | # truncate). But I don't know what the best approach is now and this |
| 46 | # change to _to_int should at least prevent Matplotlib from crashing on |
| 47 | # these. JDH (2009-11-06) |
| 48 | return int(float(x)) |
| 49 | |
| 50 | |
| 51 | def _to_float(x: bytes | str) -> float: |
no outgoing calls
searching dependent graphs…