Convert a string like '12.0 Inches' into a float (12.0).
(inch_str: str)
| 68 | |
| 69 | |
| 70 | def parse_inch_string(inch_str: str) -> float: |
| 71 | """ |
| 72 | Convert a string like '12.0 Inches' into a float (12.0). |
| 73 | """ |
| 74 | return float(inch_str.replace(" Inches", "").strip()) |
| 75 | |
| 76 | def convert_pptx_bboxes_to_image_space(bbox_dict, slide_width_in, slide_height_in): |
| 77 | """ |
no outgoing calls
no test coverage detected