rapidata 2.41.2__py3-none-any.whl → 2.41.3__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of rapidata might be problematic. Click here for more details.
- rapidata/__init__.py +1 -1
- rapidata/rapidata_client/order/rapidata_order_manager.py +8 -0
- rapidata/rapidata_client/settings/translation_behaviour.py +1 -1
- {rapidata-2.41.2.dist-info → rapidata-2.41.3.dist-info}/METADATA +1 -1
- {rapidata-2.41.2.dist-info → rapidata-2.41.3.dist-info}/RECORD +7 -7
- {rapidata-2.41.2.dist-info → rapidata-2.41.3.dist-info}/WHEEL +0 -0
- {rapidata-2.41.2.dist-info → rapidata-2.41.3.dist-info}/licenses/LICENSE +0 -0
rapidata/__init__.py
CHANGED
|
@@ -89,6 +89,14 @@ class RapidataOrderManager:
|
|
|
89
89
|
if contexts and len(contexts) != len(assets):
|
|
90
90
|
raise ValueError("Number of contexts must match number of datapoints")
|
|
91
91
|
|
|
92
|
+
if contexts:
|
|
93
|
+
if any(not isinstance(context, str) for context in contexts) or any(
|
|
94
|
+
len(context) == 0 for context in contexts
|
|
95
|
+
):
|
|
96
|
+
raise ValueError(
|
|
97
|
+
"Contexts must all be strings that are not empty\nProvide list of strings or set contexts to None"
|
|
98
|
+
)
|
|
99
|
+
|
|
92
100
|
if media_contexts and len(media_contexts) != len(assets):
|
|
93
101
|
raise ValueError("Number of media contexts must match number of datapoints")
|
|
94
102
|
|
|
@@ -17,4 +17,4 @@ class TranslationBehaviour(RapidataSetting):
|
|
|
17
17
|
if not isinstance(value, TranslationBehaviourOptions):
|
|
18
18
|
raise ValueError("The value must be a TranslationBehaviourOptions.")
|
|
19
19
|
|
|
20
|
-
super().__init__(key="translation_behaviour", value=value)
|
|
20
|
+
super().__init__(key="translation_behaviour", value=value.value)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
rapidata/__init__.py,sha256=
|
|
1
|
+
rapidata/__init__.py,sha256=B1KvKxB36b3OS3MLijTY8nSjcluQ6XXK8N0N8z1aC8Y,945
|
|
2
2
|
rapidata/api_client/__init__.py,sha256=O-VfWIRgGsXZA-sNTnmbzRzsaQRBO_GeKwpmolcdahc,36293
|
|
3
3
|
rapidata/api_client/api/__init__.py,sha256=07qqwzQiBYt5V2BtnzbXhZL2cmVHATyZmCSGshIXLck,1603
|
|
4
4
|
rapidata/api_client/api/benchmark_api.py,sha256=Ev_oZjEkmAn67OAguyFrgWMS2YgpCj-0W4zUktHaf_Q,146069
|
|
@@ -644,7 +644,7 @@ rapidata/rapidata_client/order/_rapidata_order_builder.py,sha256=EU31b3euQCBCj5e
|
|
|
644
644
|
rapidata/rapidata_client/order/dataset/_progress_tracker.py,sha256=2e9aVMwpdBSO9P3LYn5lygNbtIGzOaJD3b9J7jYaxko,3570
|
|
645
645
|
rapidata/rapidata_client/order/dataset/_rapidata_dataset.py,sha256=ONH56htEvoVZvkSItuTi3_88kaDWohmYYABSoAPEn4Q,10724
|
|
646
646
|
rapidata/rapidata_client/order/rapidata_order.py,sha256=FvZi3t4dARRNsKWvYiNxVvM50AzPwQYR3AzI4utD6OI,14497
|
|
647
|
-
rapidata/rapidata_client/order/rapidata_order_manager.py,sha256=
|
|
647
|
+
rapidata/rapidata_client/order/rapidata_order_manager.py,sha256=s5azwAMoDTo_KwWO87VbawsISv6OgfjsNLYksfJ9bk8,43386
|
|
648
648
|
rapidata/rapidata_client/order/rapidata_results.py,sha256=weL4S14fzug3ZOJbQk9Oj-4tv2jx5aZAMp7VJ-a6Qq4,8437
|
|
649
649
|
rapidata/rapidata_client/rapidata_client.py,sha256=5BJMstjJFmBwkflC_YnzlhoOF3SKP3u2wQ56G_hvB3Q,5862
|
|
650
650
|
rapidata/rapidata_client/referee/__init__.py,sha256=J8oZJNUduPr-Tmn8iJwR-qBiSv7owhUFcEzXTRETecw,155
|
|
@@ -676,7 +676,7 @@ rapidata/rapidata_client/settings/no_shuffle.py,sha256=RJKJl76vyakEQ6tyA-06GSo3w
|
|
|
676
676
|
rapidata/rapidata_client/settings/play_video_until_the_end.py,sha256=vPtIYql197Q0h6N_TlYuI3AbakBJUmnYUmhoSns9EWc,754
|
|
677
677
|
rapidata/rapidata_client/settings/rapidata_settings.py,sha256=ae_NwycNqvA2q-lnnkDohS8IduG2DBtyqLJlgt3PXBA,2501
|
|
678
678
|
rapidata/rapidata_client/settings/swap_context_instruction.py,sha256=DLa1CDKIHVWC0VBOYTbb9HZBebzsaIGT_2DHq9I0ovs,712
|
|
679
|
-
rapidata/rapidata_client/settings/translation_behaviour.py,sha256=
|
|
679
|
+
rapidata/rapidata_client/settings/translation_behaviour.py,sha256=uEke2WgzrjzRlSROgeyP7v9t5ayFynHzytjIU_gVu3Y,741
|
|
680
680
|
rapidata/rapidata_client/validation/__init__.py,sha256=s5wHVtcJkncXSFuL9I0zNwccNOKpWAqxqUjkeohzi2E,24
|
|
681
681
|
rapidata/rapidata_client/validation/rapidata_validation_set.py,sha256=cz1loj46tcgo2JUh9_rP17rWof8lsjxAHw-vA3fgVpc,4475
|
|
682
682
|
rapidata/rapidata_client/validation/rapids/__init__.py,sha256=WU5PPwtTJlte6U90MDakzx4I8Y0laj7siw9teeXj5R0,21
|
|
@@ -700,7 +700,7 @@ rapidata/service/credential_manager.py,sha256=T3yL4tXVnibRytxjQkOC-ex3kFGQR5KcKU
|
|
|
700
700
|
rapidata/service/local_file_service.py,sha256=0Q4LdoEtPFKzgXK2oZ1cQ-X7FipakscjGnnBH8dRFRQ,855
|
|
701
701
|
rapidata/service/openapi_service.py,sha256=RYY-K7L3W52fblLF-sW_P5pUu367pAfkz_OXXTCa22M,5408
|
|
702
702
|
rapidata/types/__init__.py,sha256=gSGrmWV5gEA6pPfAR5vwSy_DvibO5IjCZDiB7LtlMOQ,6134
|
|
703
|
-
rapidata-2.41.
|
|
704
|
-
rapidata-2.41.
|
|
705
|
-
rapidata-2.41.
|
|
706
|
-
rapidata-2.41.
|
|
703
|
+
rapidata-2.41.3.dist-info/METADATA,sha256=hzaA57bBMaeHQteNZaw4PoiQ18YFDWfzlRE32ZtESTI,1479
|
|
704
|
+
rapidata-2.41.3.dist-info/WHEEL,sha256=M5asmiAlL6HEcOq52Yi5mmk9KmTVjY2RDPtO4p9DMrc,88
|
|
705
|
+
rapidata-2.41.3.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
706
|
+
rapidata-2.41.3.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|