sutro 0.1.22__tar.gz → 0.1.24__tar.gz
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 sutro might be problematic. Click here for more details.
- {sutro-0.1.22 → sutro-0.1.24}/PKG-INFO +1 -1
- {sutro-0.1.22 → sutro-0.1.24}/pyproject.toml +1 -1
- {sutro-0.1.22 → sutro-0.1.24}/sutro/sdk.py +2 -16
- {sutro-0.1.22 → sutro-0.1.24}/.gitignore +0 -0
- {sutro-0.1.22 → sutro-0.1.24}/LICENSE +0 -0
- {sutro-0.1.22 → sutro-0.1.24}/README.md +0 -0
- {sutro-0.1.22 → sutro-0.1.24}/sutro/__init__.py +0 -0
- {sutro-0.1.22 → sutro-0.1.24}/sutro/cli.py +0 -0
|
@@ -410,7 +410,7 @@ class Sutro:
|
|
|
410
410
|
spinner.stop()
|
|
411
411
|
return None
|
|
412
412
|
|
|
413
|
-
results = job_results_response.json()["results"]
|
|
413
|
+
results = job_results_response.json()["results"]["outputs"]
|
|
414
414
|
|
|
415
415
|
spinner.write(
|
|
416
416
|
to_colored_text(
|
|
@@ -421,12 +421,6 @@ class Sutro:
|
|
|
421
421
|
spinner.stop()
|
|
422
422
|
|
|
423
423
|
if isinstance(data, (pd.DataFrame, pl.DataFrame)):
|
|
424
|
-
sample_n = 1 if sampling_params is None else sampling_params["n"]
|
|
425
|
-
if sample_n > 1:
|
|
426
|
-
results = [
|
|
427
|
-
results[i : i + sample_n]
|
|
428
|
-
for i in range(0, len(results), sample_n)
|
|
429
|
-
]
|
|
430
424
|
if isinstance(data, pd.DataFrame):
|
|
431
425
|
data[output_column] = results
|
|
432
426
|
elif isinstance(data, pl.DataFrame):
|
|
@@ -875,15 +869,7 @@ class Sutro:
|
|
|
875
869
|
response_data = response.json()
|
|
876
870
|
results_df = pl.DataFrame(response_data["results"])
|
|
877
871
|
|
|
878
|
-
|
|
879
|
-
if len(results_df.columns ) == 1:
|
|
880
|
-
# Default column when API is only returning a list, and we construct the df
|
|
881
|
-
# from that
|
|
882
|
-
original_results_column = 'column_0'
|
|
883
|
-
else:
|
|
884
|
-
original_results_column = 'outputs'
|
|
885
|
-
|
|
886
|
-
results_df = results_df.rename({original_results_column: output_column})
|
|
872
|
+
results_df = results_df.rename({'outputs': output_column})
|
|
887
873
|
|
|
888
874
|
# Ordering inputs col first seems most logical/useful
|
|
889
875
|
column_config = [
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|