From f8824b359a1c65364d95df90dd008de00bd75e04 Mon Sep 17 00:00:00 2001 From: jist <95856749+george0st@users.noreply.github.com> Date: Thu, 18 Jan 2024 19:53:25 +0100 Subject: [PATCH 1/3] Update ts502.py --- qgate_sln_mlrun/ts/ts502.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qgate_sln_mlrun/ts/ts502.py b/qgate_sln_mlrun/ts/ts502.py index d05a43bd..8c059cfb 100644 --- a/qgate_sln_mlrun/ts/ts502.py +++ b/qgate_sln_mlrun/ts/ts502.py @@ -59,7 +59,7 @@ def _get_data_online(self, testcase_name, project_name, featurevector_name): entities.append(itm) resp=svc.get(entities, as_list=False) - if len(resp)!=1: + if len(resp) == 0: raise ValueError("Feature vector did not return value.") else: for feature_name in test_features: From 81d0fd5c29b7549e9bf585cccc28a52de8fc1057 Mon Sep 17 00:00:00 2001 From: jist <95856749+george0st@users.noreply.github.com> Date: Thu, 18 Jan 2024 20:14:24 +0100 Subject: [PATCH 2/3] Update version.py --- qgate_sln_mlrun/version.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qgate_sln_mlrun/version.py b/qgate_sln_mlrun/version.py index 357166cd..204e9214 100644 --- a/qgate_sln_mlrun/version.py +++ b/qgate_sln_mlrun/version.py @@ -1,3 +1,3 @@ # Store the version here so: -__version__ = '0.1.4' \ No newline at end of file +__version__ = '0.1.5' \ No newline at end of file From 9b307d9459ee6971697d4888a324b3b24ec0ac1f Mon Sep 17 00:00:00 2001 From: jist <95856749+george0st@users.noreply.github.com> Date: Thu, 18 Jan 2024 20:23:15 +0100 Subject: [PATCH 3/3] Add entities to the vector --- docs/redis.md | 2 +- qgate_sln_mlrun/ts/ts401.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/redis.md b/docs/redis.md index 55b2fbde..fb94df06 100644 --- a/docs/redis.md +++ b/docs/redis.md @@ -29,5 +29,5 @@ - see `QGATE_REDIS = redis://localhost:6379` - Note - Port is based on container see **6379**, you can use also different - protocol see **rediss**, more informations see [Redis targes store from MLRun](https://docs.mlrun.org/en/latest/data-prep/ingest-data-fs.html#redis-target-store) + protocol see **rediss**, more information see [Redis targes store from MLRun](https://docs.mlrun.org/en/latest/data-prep/ingest-data-fs.html#redis-target-store) diff --git a/qgate_sln_mlrun/ts/ts401.py b/qgate_sln_mlrun/ts/ts401.py index f6bc6c3b..61558404 100644 --- a/qgate_sln_mlrun/ts/ts401.py +++ b/qgate_sln_mlrun/ts/ts401.py @@ -63,7 +63,7 @@ def _create_featurevector_content(self, project_name, featurevector_name, featur features = json_spec['features'] # create feature vector - vector = fstore.FeatureVector(featurevector_name, features, description=featurevector_desc) + vector = fstore.FeatureVector(featurevector_name, features, description = featurevector_desc, with_indexes = True) vector.save()