Skip to content

Commit

Permalink
snps_extracter allow to pass imap samples as pd.Index (makes groupby …
Browse files Browse the repository at this point in the history
…pop assignment easier)
  • Loading branch information
isaacovercast committed Sep 22, 2024
1 parent 414830a commit eb76f41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ipyrad/analysis/snps_extracter.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def __init__(
# get names from imap, else will be filled/checked against db
self.names = []
for key, val in self.imap.items():
if isinstance(val, (list, tuple, np.ndarray)):
if isinstance(val, (list, tuple, np.ndarray, pd.Index)):
self.names.extend(val)
elif isinstance(val, str):
self.names.append(val)
Expand Down

0 comments on commit eb76f41

Please sign in to comment.