def _test_imp(self, in_group, in_values, out_group, expected_values, almost=False):
    if almost:
        np.testing.assert_almost_equal(expected_values, pp.groupconvert.by_energy(in_group, in_values, out_group), err_msg='Assert group convert')
    else:
        self.assertEqual(expected_values, pp.groupconvert.by_energy(in_group, in_values, out_group), 'Assert group convert')
def _test_imp(self, in_group, in_values, out_group, expected_values, almost=False):
    if almost:
        np.testing.assert_almost_equal(expected_values, pp.groupconvert.by_energy(in_group, in_values, out_group), err_msg='Assert group convert')
    else:
        self.assertEqual(expected_values, pp.groupconvert.by_energy(in_group, in_values, out_group), 'Assert group convert')