Skip to content

Commit 1a5792a

Browse files
committed
Stubs
1 parent 89c911a commit 1a5792a

2 files changed

Lines changed: 8 additions & 5 deletions

File tree

python/lib/sift_client/resources/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ async def get_data():
114114
run="run123",
115115
start_time=datetime.now() - timedelta(hours=1),
116116
end_time=datetime.now(),
117-
limit=10000
117+
max_results=10000
118118
)
119119
120120
# data is a dict mapping channel names to DataFrames

python/lib/sift_client/resources/sync_stubs/__init__.pyi

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,8 @@ class ChannelsAPI:
431431
run: Run | str | None = None,
432432
start_time: datetime | None = None,
433433
end_time: datetime | None = None,
434-
limit: int | None = None,
434+
max_results: int | None = None,
435+
page_size: int | None = None,
435436
) -> dict[str, pd.DataFrame]:
436437
"""Get data for one or more channels.
437438
@@ -440,7 +441,8 @@ class ChannelsAPI:
440441
run: The Run or run_id to get data for.
441442
start_time: The start time to get data for.
442443
end_time: The end time to get data for.
443-
limit: The maximum number of data points to return. Will be in increments of page_size or default page size defined by the call if no page_size is provided.
444+
max_results: The maximum number of data points to return.
445+
page_size: The number of data points to return per page.
444446
445447
Returns:
446448
A dictionary mapping channel names to pandas DataFrames containing the channel data.
@@ -454,9 +456,10 @@ class ChannelsAPI:
454456
run: Run | str | None = None,
455457
start_time: datetime | None = None,
456458
end_time: datetime | None = None,
457-
limit: int | None = None,
459+
max_results: int | None = None,
460+
page_size: int | None = None,
458461
) -> dict[str, pa.Table]:
459-
"""Get data for one or more channels as pyarrow tables."""
462+
"""Same as get_data but returns data as pyarrow tables."""
460463
...
461464

462465
def list_(

0 commit comments

Comments
 (0)