Scope metadata #18
GitHub Actions / Unit Test Results
failed
Jan 27, 2024 in 0s
3 fail, 17 pass in 4m 29s
Annotations
Check warning on line 0 in integration_tests.test_lens_solver
github-actions / Unit Test Results
All 3 runs failed: test_make_collection[True] (integration_tests.test_lens_solver)
artifacts/Test Results (Python 3.7)/test.xml
artifacts/Test Results (Python 3.8)/test.xml
artifacts/Test Results (Python 3.9)/test.xml
Raw output
solver_input_args = {'data_dir': '/home/runner/work/em_stitch/em_stitch/integration_tests/test_files/lens_example', 'log_level': 'INFO', 'mask_file': None, 'nvertex': 1000, ...}
compress = True
@pytest.mark.parametrize("compress", [True, False])
def test_make_collection(solver_input_args, compress):
ftemplate = glob.glob(
os.path.join(
solver_input_args['data_dir'],
"_template_matches_*.json"))[0]
with TemporaryDirectory() as output_dir:
cfile, counts = make_collection_json(
ftemplate,
output_dir,
compress,
solver_input_args['ransac_thresh'])
# for debug purposes, sometimes ignore some matches to see
# how the solve does without them
m = jsongz.load(cfile)
n0 = len(m)
cfile, counts = make_collection_json(
ftemplate,
output_dir,
solver_input_args['ransac_thresh'],
compress,
ignore_match_indices=[0, 1])
m = jsongz.load(cfile)
n1 = len(m)
> assert n0 == (n1 + 2)
E assert 40 == (40 + 2)
integration_tests/test_lens_solver.py:174: AssertionError
Check warning on line 0 in integration_tests.test_lens_solver
github-actions / Unit Test Results
All 3 runs failed: test_make_collection[False] (integration_tests.test_lens_solver)
artifacts/Test Results (Python 3.7)/test.xml
artifacts/Test Results (Python 3.8)/test.xml
artifacts/Test Results (Python 3.9)/test.xml
Raw output
solver_input_args = {'data_dir': '/home/runner/work/em_stitch/em_stitch/integration_tests/test_files/lens_example', 'log_level': 'INFO', 'mask_file': None, 'nvertex': 1000, ...}
compress = False
@pytest.mark.parametrize("compress", [True, False])
def test_make_collection(solver_input_args, compress):
ftemplate = glob.glob(
os.path.join(
solver_input_args['data_dir'],
"_template_matches_*.json"))[0]
with TemporaryDirectory() as output_dir:
cfile, counts = make_collection_json(
ftemplate,
output_dir,
compress,
solver_input_args['ransac_thresh'])
# for debug purposes, sometimes ignore some matches to see
# how the solve does without them
m = jsongz.load(cfile)
n0 = len(m)
cfile, counts = make_collection_json(
ftemplate,
output_dir,
solver_input_args['ransac_thresh'],
compress,
ignore_match_indices=[0, 1])
m = jsongz.load(cfile)
n1 = len(m)
> assert n0 == (n1 + 2)
E assert 40 == (40 + 2)
integration_tests/test_lens_solver.py:174: AssertionError
Check warning on line 0 in integration_tests.test_pointmatch_filter
github-actions / Unit Test Results
All 3 runs failed: test_one_cluster_filter (integration_tests.test_pointmatch_filter)
artifacts/Test Results (Python 3.7)/test.xml
artifacts/Test Results (Python 3.8)/test.xml
artifacts/Test Results (Python 3.9)/test.xml
Raw output
def test_one_cluster_filter():
# check the size and shape of things
> m = dummy_match()
integration_tests/test_pointmatch_filter.py:90:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
integration_tests/test_pointmatch_filter.py:81: in dummy_match
'p': inverse(t0, src),
integration_tests/test_pointmatch_filter.py:51: in inverse
return itf.tform(src).transpose().tolist()
.tox/py39/lib/python3.9/site-packages/renderapi/transform/leaf/affine_models.py:288: in tform
points, Nd = self.convert_to_point_vector(points)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
points = array([array(<POINT (335.049 232.85)>, dtype=object),
array(<POINT (795.223 611.91)>, dtype=object),
arr... array(<POINT (245.916 464.05)>, dtype=object),
array(<POINT (10.449 586.546)>, dtype=object)], dtype=object)
@staticmethod
def convert_to_point_vector(points):
"""method to help reshape x,y points to x,y,1 vectors
Parameters
----------
points : numpy.array
a Nx2 array of x,y points
Returns
-------
numpy.array
a Nx3 array of x,y,1 points used for transformations
"""
Np = points.shape[0]
onevec = np.ones((Np, 1), np.double)
> if points.shape[1] != 2:
E IndexError: tuple index out of range
.tox/py39/lib/python3.9/site-packages/renderapi/transform/leaf/affine_models.py:250: IndexError
Loading