MCPcopy Index your code
hub / github.com/DeepLabCut/DeepLabCut / real_assemblies_montblanc

Function real_assemblies_montblanc

tests/conftest.py:106–114  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

104
105@pytest.fixture(scope="function")
106def real_assemblies_montblanc():
107 with open(os.path.join(TEST_DATA_DIR, "montblanc_assemblies.pickle"), "rb") as file:
108 temp = pickle.load(file)
109 single = temp.pop("single")
110 data = np.full((max(temp) + 1, 3, 4, 4), np.nan)
111 for k, assemblies in temp.items():
112 for i, assembly in enumerate(assemblies):
113 data[k, i] = assembly
114 return inferenceutils._parse_ground_truth_data(data), single
115
116
117@pytest.fixture(scope="function")

Callers

nothing calls this directly

Calls 2

loadMethod · 0.80
itemsMethod · 0.80

Tested by

no test coverage detected