MCPcopy Create free account
hub / github.com/OpenBMB/AgentCPM-GUI / is_tap_action

Function is_tap_action

eval/utils/action_utils.py:94–97  ·  view source on GitHub ↗
(normalized_start_yx, normalized_end_yx)

Source from the content-addressed store, hash-verified

92
93
94def is_tap_action(normalized_start_yx, normalized_end_yx):
95 distance = jnp.linalg.norm(
96 jnp.array(normalized_start_yx) - jnp.array(normalized_end_yx))
97 return distance <= _SWIPE_DISTANCE_THRESHOLD
98
99
100def _is_non_dual_point_action(action_type):

Callers 2

extract_gt_actionFunction · 0.70
check_actions_matchFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected