We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e08bdcc commit 3961624Copy full SHA for 3961624
psm_utils/psm_list.py
@@ -100,11 +100,11 @@ def __getitem__(self, item) -> PSM | list[PSM]:
100
# Return PSM property as array across full PSMList
101
try:
102
return np.fromiter(
103
- [psm[item] for psm in self.psm_list], dtype=NUMPY_DTYPES[item], count=len(self)
+ (psm[item] for psm in self.psm_list), dtype=NUMPY_DTYPES[item], count=len(self)
104
)
105
except TypeError:
106
107
- [psm[item] for psm in self.psm_list], dtype=object, count=len(self)
+ (psm[item] for psm in self.psm_list), dtype=object, count=len(self)
108
109
elif _is_iterable_of_bools(item):
110
# Return new PSMList with items that were True
0 commit comments