Skip to content
This repository was archived by the owner on Jun 30, 2022. It is now read-only.

Commit c53f071

Browse files
committed
small bugfix
1 parent 1f5b801 commit c53f071

4 files changed

Lines changed: 4 additions & 3 deletions

File tree

mljar/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
__version__ = '0.0.3'
2+
__version__ = '0.0.8'
33
API_VERSION = 'v1'
44
MLJAR_ENDPOINT = 'https://mljar.com/api'
55

mljar/client/dataset.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ def add_dataset_if_not_exists(self, X, y, title_prefix = 'dataset-'):
125125
datasets = self.get_datasets()
126126
dataset_details = [d for d in datasets if d.dataset_hash == dataset_hash]
127127
# dataset with specified hash does not exist
128-
if len(dataset_details) != 1:
128+
if len(dataset_details) == 0:
129129
# add new dataset
130130
dataset_details = self.add_new_dataset(data, y, title_prefix)
131131
else:

mljar/utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ def make_hash(item):
8282
values = tuple(tuple(x) for x in item.values)
8383
item = tuple([index, values])
8484
elif isinstance(item, np.ndarray):
85+
item = item.copy(order='C')
8586
return hashlib.sha1(item).hexdigest()
8687
try:
8788
return hash(item)

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
setup(
1212
name='mljar',
13-
version='0.0.7',
13+
version='0.0.8',
1414
description='Python wrapper over MLJAR API',
1515
long_description=long_description,
1616
url='https://github.com/mljar/mljar-api-python',

0 commit comments

Comments
 (0)