Skip to content

Commit 3961624

Browse files
committed
Implement requested changes
1 parent e08bdcc commit 3961624

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

psm_utils/psm_list.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,11 +100,11 @@ def __getitem__(self, item) -> PSM | list[PSM]:
100100
# Return PSM property as array across full PSMList
101101
try:
102102
return np.fromiter(
103-
[psm[item] for psm in self.psm_list], dtype=NUMPY_DTYPES[item], count=len(self)
103+
(psm[item] for psm in self.psm_list), dtype=NUMPY_DTYPES[item], count=len(self)
104104
)
105105
except TypeError:
106106
return np.fromiter(
107-
[psm[item] for psm in self.psm_list], dtype=object, count=len(self)
107+
(psm[item] for psm in self.psm_list), dtype=object, count=len(self)
108108
)
109109
elif _is_iterable_of_bools(item):
110110
# Return new PSMList with items that were True

0 commit comments

Comments
 (0)