diff --git a/hkl/reflect.py b/hkl/reflect.py index 30cdb526..6d5a6327 100644 --- a/hkl/reflect.py +++ b/hkl/reflect.py @@ -45,12 +45,9 @@ def __repr__(self): def __eq__(self, refl): return ( isinstance(refl, self.__class__) - and - self.pseudos == refl.pseudos - and - self.reals == refl.reals - and - self.wavelength == refl.wavelength + and self.pseudos == refl.pseudos + and self.reals == refl.reals + and self.wavelength == refl.wavelength ) diff --git a/hkl/sample.py b/hkl/sample.py index 831c0e58..ac375230 100644 --- a/hkl/sample.py +++ b/hkl/sample.py @@ -342,7 +342,7 @@ def add_reflection(self, h, k, l, position=None, detector=None, compute_ub=False def remove_reflection(self, refl): """Remove a specific reflection""" - if not isinstance(refl, libhkl.SampleReflection): # TODO: + if not isinstance(refl, libhkl.SampleReflection): # TODO: index = self.reflections.index(refl) refl = self._sample.reflections_get()[index] diff --git a/hkl/tests/test_reflect.py b/hkl/tests/test_reflect.py index bf1292b7..6006769b 100644 --- a/hkl/tests/test_reflect.py +++ b/hkl/tests/test_reflect.py @@ -31,7 +31,7 @@ def fourc(): [(0, 1, -1), (10, 20), 1.0, False], [(0, 1, -1), None, 1.0, False], [(0, 1, -1), (10, 20, 30, 40), 2.0, False], - ] + ], ) def test_Reflection_equal(pseudos, reals, wavelength, ok): r0 = Reflection((0, 1, -1), (10, 20, 30, 40), 1.0) @@ -107,8 +107,8 @@ def test_compute_UB(fourc): # assert manager.UB_reflections == manager.all_reflections # refl = Reflection( - # (-1, 0, 0), - # (30, 0, -90, 60), + # (-1, 0, 0), + # (30, 0, -90, 60), # fourc.calc.wavelength # ) # r0 = manager.all_reflections[0]