Skip to content

Commit

Permalink
Fix label indexing error in strength
Browse files Browse the repository at this point in the history
  • Loading branch information
davidealbanese committed Jul 30, 2020
1 parent 6875ee2 commit 755e909
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mictools/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
__version__ = "1.1.2"
__version__ = "1.1.3"

NULL_HIST_RES = 10000
3 changes: 2 additions & 1 deletion mictools/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@ def read_data(xvars_fn, labels_fn=None, target=None, yvars_fn=None):
raise Exception("target {} is not in the labels file".\
format(target))

labels = labels_df.loc[labels_df[target].notnull(), target]
labels_df = labels_df.loc[labels_df[target].notnull(), target]
labels = labels_df.astype(str)
sample_ids = sorted(set(sample_ids) & set(labels.index))

if not yvars_fn is None:
Expand Down
2 changes: 2 additions & 0 deletions pypi-deploy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
python3 setup.py sdist bdist_wheel
python3 -m twine upload dist/*

0 comments on commit 755e909

Please sign in to comment.