MCPcopy Create free account
hub / github.com/It4innovations/hyperqueue / groups

Function groups

tests/test_coupling.py:157–164  ·  view source on GitHub ↗
(job_id)

Source from the content-addressed store, hash-verified

155
156def test_coupling_combined(hq_env: HqEnv):
157 def groups(job_id):
158 with open(default_task_output(job_id)) as f:
159 a, b = f.read().rstrip().split(";")
160 data1 = [int(x) // 10 for x in a.split(",")]
161 data2 = [int(x) // 10 for x in b.split(",")]
162 c1 = collections.Counter(data1)
163 c2 = collections.Counter(data2)
164 return sorted(c1.values()), sorted(c2.values())
165
166 hq_env.start_server()
167

Callers 4

test_coupling_combinedFunction · 0.70
parse_resource_groupFunction · 0.50
prune_hyper_threadingFunction · 0.50
groups_numericMethod · 0.50

Calls 3

default_task_outputFunction · 0.85
valuesMethod · 0.80
splitMethod · 0.45

Tested by

no test coverage detected