Skip to content

Commit

Permalink
STY #189
Browse files Browse the repository at this point in the history
  • Loading branch information
prjemian committed Jun 29, 2022
1 parent 752cbbf commit e75b321
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 10 deletions.
9 changes: 3 additions & 6 deletions hkl/reflect.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
)


Expand Down
2 changes: 1 addition & 1 deletion hkl/sample.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]

Expand Down
6 changes: 3 additions & 3 deletions hkl/tests/test_reflect.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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]
Expand Down

0 comments on commit e75b321

Please sign in to comment.