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.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: sutro
3
- Version: 0.1.22
3
+ Version: 0.1.24
4
4
  Summary: Sutro Python SDK
5
5
  Project-URL: Homepage, https://sutro.sh
6
6
  Project-URL: Documentation, https://docs.sutro.sh
@@ -9,7 +9,7 @@ installer = "uv"
9
9
 
10
10
  [project]
11
11
  name = "sutro"
12
- version = "0.1.22"
12
+ version = "0.1.24"
13
13
  description = "Sutro Python SDK"
14
14
  readme = "README.md"
15
15
  requires-python = ">=3.10"
@@ -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