Skip to content

Commit

Permalink
MNT #75 edge case
Browse files Browse the repository at this point in the history
  • Loading branch information
prjemian committed Dec 31, 2020
1 parent 2d7404f commit 52a345c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion hkl/sample.py
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,13 @@ def _get_reflection_dict(self, refl):
@property
def reflections_details(self):
"""Return a list with details of all reflections."""
refls = self._sample.reflections_get()
for r in self._orientation_reflections:
if r not in refls:
# Edge case when orientation reflection was
# deleted from the list in libhkl.
refls.append(r)
return [
self._get_reflection_dict(r)
for r in self._sample.reflections_get()
for r in refls
]

0 comments on commit 52a345c

Please sign in to comment.