rapidata 2.27.2__py3-none-any.whl → 2.27.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.py +5 -0
- rapidata/rapidata_client/order/rapidata_order_manager.py +2 -2
- {rapidata-2.27.2.dist-info → rapidata-2.27.3.dist-info}/METADATA +1 -1
- {rapidata-2.27.2.dist-info → rapidata-2.27.3.dist-info}/RECORD +7 -7
- {rapidata-2.27.2.dist-info → rapidata-2.27.3.dist-info}/LICENSE +0 -0
- {rapidata-2.27.2.dist-info → rapidata-2.27.3.dist-info}/WHEEL +0 -0
rapidata/__init__.py
CHANGED
|
@@ -207,6 +207,11 @@ class RapidataOrder:
|
|
|
207
207
|
Exception: If the order is not in processing state.
|
|
208
208
|
"""
|
|
209
209
|
logger.info("Opening order preview in browser...")
|
|
210
|
+
if self.get_status() == OrderState.CREATED:
|
|
211
|
+
logger.info("Order is still in state created. Setting it to preview.")
|
|
212
|
+
self.__openapi_service.order_api.order_order_id_preview_post(self.id)
|
|
213
|
+
logger.info("Order is now in preview state.")
|
|
214
|
+
|
|
210
215
|
campaign_id = self.__get_campaign_id()
|
|
211
216
|
auth_url = f"https://app.{self.__openapi_service.environment}/order/detail/{self.id}/preview?campaignId={campaign_id}"
|
|
212
217
|
could_open_browser = webbrowser.open(auth_url)
|
|
@@ -293,7 +293,7 @@ class RapidataOrderManager:
|
|
|
293
293
|
instruction: str,
|
|
294
294
|
datapoints: list[str],
|
|
295
295
|
total_comparison_budget: int,
|
|
296
|
-
responses_per_comparison: int =
|
|
296
|
+
responses_per_comparison: int = 1,
|
|
297
297
|
data_type: str = RapidataDataTypes.MEDIA,
|
|
298
298
|
random_comparisons_ratio: float = 0.5,
|
|
299
299
|
context: Optional[str] = None,
|
|
@@ -313,7 +313,7 @@ class RapidataOrderManager:
|
|
|
313
313
|
instruction (str): The question asked from People when They see two datapoints.
|
|
314
314
|
datapoints (list[str]): A list of datapoints that will participate in the ranking.
|
|
315
315
|
total_comparison_budget (int): The total number of (pairwise-)comparisons that can be made.
|
|
316
|
-
responses_per_comparison (int, optional): The number of responses collected per comparison.
|
|
316
|
+
responses_per_comparison (int, optional): The number of responses collected per comparison. Defaults to 1.
|
|
317
317
|
data_type (str, optional): The data type of the datapoints. Defaults to RapidataDataTypes.MEDIA. \n
|
|
318
318
|
Other option: RapidataDataTypes.TEXT ("text").
|
|
319
319
|
random_comparisons_ratio (float, optional): The fraction of random comparisons in the ranking process.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
rapidata/__init__.py,sha256=
|
|
1
|
+
rapidata/__init__.py,sha256=0chCH7UKoR-tbr8g6sIUqU8Q8WcVptMy3uZ92fpnksk,812
|
|
2
2
|
rapidata/api_client/__init__.py,sha256=OKVtwJHhPEDMHcdwyS0T5ly3puaJL8jr3X6xUH48cSY,28120
|
|
3
3
|
rapidata/api_client/api/__init__.py,sha256=Dv6v1tCJS4BLVM5BN9k5iRMNMyglhqZ4n8vyoqkLZZw,1292
|
|
4
4
|
rapidata/api_client/api/campaign_api.py,sha256=1ajX0hSnA4O5GacJLIGkAgorPlNDRVaEZY029Pkutl4,71353
|
|
@@ -481,8 +481,8 @@ rapidata/rapidata_client/metadata/_select_words_metadata.py,sha256=-MK5yQDi_G3BK
|
|
|
481
481
|
rapidata/rapidata_client/order/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
482
482
|
rapidata/rapidata_client/order/_rapidata_dataset.py,sha256=JVGsiBa_BL0E7UZOHZ4uABr1jDVpbTiAQFO9pF2isVA,18891
|
|
483
483
|
rapidata/rapidata_client/order/_rapidata_order_builder.py,sha256=x-2lpW6Jwlq-9XRz91beWNv2TgdEA-q4b_RhOSr7vhQ,14405
|
|
484
|
-
rapidata/rapidata_client/order/rapidata_order.py,sha256=
|
|
485
|
-
rapidata/rapidata_client/order/rapidata_order_manager.py,sha256=
|
|
484
|
+
rapidata/rapidata_client/order/rapidata_order.py,sha256=uk2p6Hx2KTN4Oq2S35esdip7yLR44y-kkamS-5TBPFE,12752
|
|
485
|
+
rapidata/rapidata_client/order/rapidata_order_manager.py,sha256=K9Nc66UmBfFQjSe78SMdZTOa4z3j5TRyvBnEX0Cs0u4,38306
|
|
486
486
|
rapidata/rapidata_client/order/rapidata_results.py,sha256=UllYpuqpm2inKdRNhClaUwApuxsMLrvrGDsrHA5KqbY,8111
|
|
487
487
|
rapidata/rapidata_client/rapidata_client.py,sha256=iAycSS8Dyt0_xnILpU5N9DoeGlB3v2UtlinmxcFh-eo,4029
|
|
488
488
|
rapidata/rapidata_client/referee/__init__.py,sha256=q0Hv9nmfEpyChejtyMLT8hWKL0vTTf_UgUXPYNJ-H6M,153
|
|
@@ -534,7 +534,7 @@ rapidata/service/__init__.py,sha256=s9bS1AJZaWIhLtJX_ZA40_CK39rAAkwdAmymTMbeWl4,
|
|
|
534
534
|
rapidata/service/credential_manager.py,sha256=pUEEtp6VrFWYhfUUtyqmS0AlRqe2Y0kFkY6o22IT4KM,8682
|
|
535
535
|
rapidata/service/local_file_service.py,sha256=pgorvlWcx52Uh3cEG6VrdMK_t__7dacQ_5AnfY14BW8,877
|
|
536
536
|
rapidata/service/openapi_service.py,sha256=J07TB4P3cz9KCU7k_fwuMQwGXlq_nJx_m1_xHbZoCg0,4867
|
|
537
|
-
rapidata-2.27.
|
|
538
|
-
rapidata-2.27.
|
|
539
|
-
rapidata-2.27.
|
|
540
|
-
rapidata-2.27.
|
|
537
|
+
rapidata-2.27.3.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
538
|
+
rapidata-2.27.3.dist-info/METADATA,sha256=aX6iAW_d_40frKFdTJd6_ptdLPnJueU4QTgq7EMB1Ic,1268
|
|
539
|
+
rapidata-2.27.3.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
|
540
|
+
rapidata-2.27.3.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|