Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Modified test_refine_orientation_pc_pseudo_symmetry_scipy()
The above function in the suite TestEBSDRefineOrientationPC has been modified by adding a trust region as an argument in the call to s.refine_orientation_projection_centre() with the method "differential_evolution". This was necessary because the new version of _refine_orientation_pc_objective_function() in indexing\_refinement\_objective_functions.py requires the instatiation of an EBSDDetector and thus the subsequent calculation of its gnomonic_bounds. If pc is (0, 0, 0), this leads to strange results which cause errors in the function _get_direction_cosines_for_fixed_pc() in signals\util\_master_pattern.py. Adding the trust region (same parameters as in the earlier call to s.refine_orientation_projection_centre() within the same test function) solves this problem. The test test_refine_orientation_pc_pseudo_symmetry_scipy() now passes, as do ALL the tests in tests/test_indexing/test_ebsd_refinement.py. Signed-off-by: tgwoodcock <[email protected]>
- Loading branch information