Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
xmival00 committed Oct 11, 2023
1 parent 104ed79 commit cfad1cf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion best/feature.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ def remove_samples(x, y=None, to_del=None):
"""
to_del = np.array(to_del)
if to_del.dtype == np.bool: # if to_del is array of bools
if to_del.dtype == np.bool_: # if to_del is array of bools
if x.__len__() != to_del.__len__():
raise AssertionError('If to_del is a bool array, must be the same length as x')
to_del = np.where(to_del)[0]
Expand Down
2 changes: 1 addition & 1 deletion best/test/test_best_feature_extraction.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
from best.feature_extraction.FeatureExtractor import *

class Test_feature_extration(TestCase):
def


def test_import(self):
print("Testing import 'from best.feature_extraction'")
Expand Down

0 comments on commit cfad1cf

Please sign in to comment.