MCPcopy Create free account
hub / github.com/Paper2Poster/Paper2Poster / parse_inch_string

Function parse_inch_string

utils/critic_utils.py:70–74  ·  view source on GitHub ↗

Convert a string like '12.0 Inches' into a float (12.0).

(inch_str: str)

Source from the content-addressed store, hash-verified

68
69
70def 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
76def convert_pptx_bboxes_to_image_space(bbox_dict, slide_width_in, slide_height_in):
77 """

Calls

no outgoing calls

Tested by

no test coverage detected