Skip to content
This repository has been archived by the owner on Nov 29, 2018. It is now read-only.

Error message is unhelpful when rank_targets is called with a bad target #2

Open
tdsmith opened this issue Aug 17, 2015 · 3 comments
Open

Comments

@tdsmith
Copy link
Owner

tdsmith commented Aug 17, 2015

In [6]: eleven.rank_targets(df, ["ACTB", "B2M", "GAPDH"], "BM9")
...
IndexError: cannot do a non-empty take from an empty axes.

In [11]: any(df["Target"] == "GAPDH")
Out[11]: False

@bmiles
Copy link

bmiles commented Nov 10, 2017

bit lost hitting this @tdsmith

ranked = eleven.rank_targets(censored, '18s', 'Control')
...
IndexError: cannot do a non-empty take from an empty axes.

any(censored["Target"] == "18s")
...
True

@tdsmith
Copy link
Owner Author

tdsmith commented Nov 10, 2017

Hi Ben! Sorry to say I haven't touched this in long enough that I'm not sure I remember what this means either. :) It's a pretty embarrassing codebase. I can take a look this weekend, which will probably shame me into redoing the API.

@bmiles
Copy link

bmiles commented Nov 10, 2017

hehe no problem, I saw the last commit was some time ago, please don't go to any effort!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants