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

Function get_groups

tests/test_coupling.py:90–97  ·  view source on GitHub ↗
(data)

Source from the content-addressed store, hash-verified

88 wait_for_job_state(hq_env, [1, 2], "FINISHED")
89
90 def get_groups(data):
91 cpus, foos = (x.split(",") for x in data.rstrip().split(";"))
92 g = set()
93 for c in cpus:
94 g.add(int(c) // 4)
95 for f in foos:
96 g.add(int(f) // 50)
97 return g
98
99 for i in range(1, 51):
100 with open(default_task_output(job_id=1, task_id=i), "r") as f:

Callers 2

test_coupling_alloc1Function · 0.85
test_coupling_alloc2Function · 0.85

Calls 2

splitMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected