3.1.2.17. opengate.helpers_tests¶
3.1.2.17.1. Module Contents¶
3.1.2.17.1.1. Functions¶
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Return a branch whether it is a numpy or a uproot tree |
|
Compare with Wasserstein distance |
|
Compare with Wasserstein distance |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- opengate.helpers_tests.assert_images(ref_filename1, filename2, stats=None, tolerance=0, ignore_value=0, axis='z', fig_name=None, sum_tolerance=5)[source]¶
- opengate.helpers_tests.get_branch(tree, keys, key)[source]¶
Return a branch whether it is a numpy or a uproot tree
- opengate.helpers_tests.compare_branches(tree1, keys1, tree2, keys2, key1, key2, tol=0.8, scaling1=1, scaling2=1, ax=False, nb_bins=200)[source]¶
Compare with Wasserstein distance Works well, but not easy to set the tolerance value.
- opengate.helpers_tests.compare_branches_values(b1, b2, key1, key2, tol=0.8, ax=False, nb_bins=200)[source]¶
Compare with Wasserstein distance Works well, but not easy to set the tolerance value.
- opengate.helpers_tests.compare_trees(tree1, allkeys1, tree2, allkeys2, keys1, keys2, tols, scalings1, scalings2, fig=False, nb_bins=200)[source]¶
- opengate.helpers_tests.compare_root2(root1, root2, branch1, branch2, keys, img_filename, n_tol=3)[source]¶
- opengate.helpers_tests.compare_root3(root1, root2, branch1, branch2, keys1, keys2, tols, scalings1, scalings2, img, hits_tol=6, nb_bins=200)[source]¶
- opengate.helpers_tests.write_gauss_param_to_file(outputdir, planePositionsV, saveFig=False, fNamePrefix='plane', fNameSuffix='a.mhd')[source]¶
- opengate.helpers_tests.get_gauss_param_xy(data, spacing, shape, filepath=None, saveFig=False)[source]¶
- opengate.helpers_tests.extract_gauss_param_1D(data, length, spacing, axis=1, createFig=False)[source]¶
- opengate.helpers_tests.compareGaussParamFromFile(sigma, ref, rel_tol=0, abs_tol=0, verb=False)[source]¶