Skip to content

Commit

Permalink
Merge pull request #49 from KrishnaswamyLab/dev
Browse files Browse the repository at this point in the history
Fix index check for sample_labels
  • Loading branch information
dburkhardt committed Feb 10, 2021
2 parents 80fc7ad + fdbb005 commit 1699db1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion meld/meld.py
Expand Up @@ -220,7 +220,7 @@ def transform(self, sample_labels):
)

# self._label_cls = type(sample_labels)
if isinstance(sample_labels, pd.DataFrame):
if hasattr(sample_labels, "index"):
self._labels_index = sample_labels.index
else:
self._labels_index = None
Expand Down

0 comments on commit 1699db1

Please sign in to comment.