sweatstack 0.33.0__tar.gz → 0.34.0__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.
- {sweatstack-0.33.0 → sweatstack-0.34.0}/PKG-INFO +1 -1
- {sweatstack-0.33.0 → sweatstack-0.34.0}/pyproject.toml +1 -1
- {sweatstack-0.33.0 → sweatstack-0.34.0}/src/sweatstack/client.py +5 -8
- {sweatstack-0.33.0 → sweatstack-0.34.0}/.gitignore +0 -0
- {sweatstack-0.33.0 → sweatstack-0.34.0}/.python-version +0 -0
- {sweatstack-0.33.0 → sweatstack-0.34.0}/DEVELOPMENT.md +0 -0
- {sweatstack-0.33.0 → sweatstack-0.34.0}/Makefile +0 -0
- {sweatstack-0.33.0 → sweatstack-0.34.0}/README.md +0 -0
- {sweatstack-0.33.0 → sweatstack-0.34.0}/playground/.ipynb_checkpoints/Untitled-checkpoint.ipynb +0 -0
- {sweatstack-0.33.0 → sweatstack-0.34.0}/playground/README.md +0 -0
- {sweatstack-0.33.0 → sweatstack-0.34.0}/playground/Sweat Stack examples/Getting started.ipynb +0 -0
- {sweatstack-0.33.0 → sweatstack-0.34.0}/playground/Untitled.ipynb +0 -0
- {sweatstack-0.33.0 → sweatstack-0.34.0}/playground/hello.py +0 -0
- {sweatstack-0.33.0 → sweatstack-0.34.0}/playground/pyproject.toml +0 -0
- {sweatstack-0.33.0 → sweatstack-0.34.0}/src/sweatstack/Sweat Stack examples/Getting started.ipynb +0 -0
- {sweatstack-0.33.0 → sweatstack-0.34.0}/src/sweatstack/__init__.py +0 -0
- {sweatstack-0.33.0 → sweatstack-0.34.0}/src/sweatstack/cli.py +0 -0
- {sweatstack-0.33.0 → sweatstack-0.34.0}/src/sweatstack/constants.py +0 -0
- {sweatstack-0.33.0 → sweatstack-0.34.0}/src/sweatstack/ipython_init.py +0 -0
- {sweatstack-0.33.0 → sweatstack-0.34.0}/src/sweatstack/jupyterlab_oauth2_startup.py +0 -0
- {sweatstack-0.33.0 → sweatstack-0.34.0}/src/sweatstack/openapi_schemas.py +0 -0
- {sweatstack-0.33.0 → sweatstack-0.34.0}/src/sweatstack/py.typed +0 -0
- {sweatstack-0.33.0 → sweatstack-0.34.0}/src/sweatstack/schemas.py +0 -0
- {sweatstack-0.33.0 → sweatstack-0.34.0}/src/sweatstack/streamlit.py +0 -0
- {sweatstack-0.33.0 → sweatstack-0.34.0}/src/sweatstack/sweatshell.py +0 -0
- {sweatstack-0.33.0 → sweatstack-0.34.0}/src/sweatstack/utils.py +0 -0
- {sweatstack-0.33.0 → sweatstack-0.34.0}/uv.lock +0 -0
|
@@ -458,7 +458,7 @@ class Client(OAuth2Mixin, DelegationMixin):
|
|
|
458
458
|
start: date | str,
|
|
459
459
|
end: date | str | None = None,
|
|
460
460
|
metrics: list[Metric | str] | None = None,
|
|
461
|
-
adaptive_sampling_on: Literal["power", "speed"] | None = None,
|
|
461
|
+
adaptive_sampling_on: Literal[Metric.power, Metric.speed] | Literal["power", "speed"] | None = None,
|
|
462
462
|
) -> pd.DataFrame:
|
|
463
463
|
if sport and sports:
|
|
464
464
|
raise ValueError("Cannot specify both sport and sports")
|
|
@@ -467,19 +467,16 @@ class Client(OAuth2Mixin, DelegationMixin):
|
|
|
467
467
|
elif sports is None:
|
|
468
468
|
sports = []
|
|
469
469
|
|
|
470
|
-
sports = self._enums_to_strings(sports)
|
|
471
|
-
metrics = self._enums_to_strings(metrics)
|
|
472
|
-
|
|
473
470
|
params = {
|
|
474
|
-
"sports": sports,
|
|
475
|
-
"start": start
|
|
471
|
+
"sports": self._enums_to_strings(sports),
|
|
472
|
+
"start": start
|
|
476
473
|
}
|
|
477
474
|
if end is not None:
|
|
478
475
|
params["end"] = end
|
|
479
476
|
if metrics is not None:
|
|
480
|
-
params["metrics"] = metrics
|
|
477
|
+
params["metrics"] = self._enums_to_strings(metrics)
|
|
481
478
|
if adaptive_sampling_on is not None:
|
|
482
|
-
params["adaptive_sampling_on"] = adaptive_sampling_on
|
|
479
|
+
params["adaptive_sampling_on"] = self._enums_to_strings([adaptive_sampling_on])[0]
|
|
483
480
|
|
|
484
481
|
with self._http_client() as client:
|
|
485
482
|
response = client.get(
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{sweatstack-0.33.0 → sweatstack-0.34.0}/playground/.ipynb_checkpoints/Untitled-checkpoint.ipynb
RENAMED
|
File without changes
|
|
File without changes
|
{sweatstack-0.33.0 → sweatstack-0.34.0}/playground/Sweat Stack examples/Getting started.ipynb
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{sweatstack-0.33.0 → sweatstack-0.34.0}/src/sweatstack/Sweat Stack examples/Getting started.ipynb
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|