MCPcopy Create free account
hub / github.com/7BEII/Comfyui_PDuse / select_value

Method select_value

py/PD_string_selector.py:18–23  ·  view source on GitHub ↗
(self, aspect_ratio, **values)

Source from the content-addressed store, hash-verified

16 CATEGORY = "PDuse/Text"
17
18 def select_value(self, aspect_ratio, **values):
19 ratio = aspect_ratio.strip()
20 if ratio not in values:
21 ratio = "2:3"
22 value = str(values[ratio]).strip()
23 return (value, int(float(value)))
24
25
26NODE_CLASS_MAPPINGS = {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected