Skip to content

Commit d13250f

Browse files
committed
updated recommendations and fixes
1 parent 7f3b607 commit d13250f

8 files changed

Lines changed: 23 additions & 23 deletions

File tree

docs/Functions/GetTests.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ __`GetTests(from_: int = None, to_: int = None, sync: bool = False, athleteId: s
44
Get all test trials from an account. Allows filtering of results based on time frames, synchronization needs, and the active status of tests.
55

66
### Parameters
7-
__`from_`__: _(int)_ Unix timestamp specifying the start time from which tests should be fetched. Default is None, which fetches tests from the beginning.
7+
__`from_`__: _(int | str)_ Unix timestamp or string date (e.g., "YYYY-MM-DD") specifying the start time from which tests should be fetched. Default is None, which fetches tests from the beginning.
88

9-
__`to_`__: _(int)_ Unix timestamp specifying the end time until which tests should be fetched. Default is None, which fetches tests up to the current time.
9+
__`to_`__: _(int | str)_ Unix timestamp or string date (e.g., "YYYY-MM-DD") specifying the end time until which tests should be fetched. Default is None, which fetches tests up to the current time.
1010

1111
__`sync`__: _(bool)_ If True, the function fetches updated and newly created tests to synchronize with the database. Default is False.
1212

hdforce/GetForceTime.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,6 @@ def pad_array(arr, target_length, pad_value=None):
155155
"displacement": displacement,
156156
"power": power
157157
})
158-
data.get("Time(s)",)
159158

160159
# Setting attributes
161160
df.attrs['Test ID'] = data['id']

hdforce/GetTests.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ def GetTests(from_=None, to_=None, sync=False, athleteId=None, typeId=None, team
1616
1717
Parameters
1818
----------
19-
from_ : int, optional
20-
Unix timestamp specifying the start time from which tests should be fetched. Default is None, which fetches tests from the beginning.
19+
from_ : int | str, optional
20+
Unix timestamp (int) or string date (e.g., "YYYY-MM-DD") specifying the start time from which tests should be fetched. Default is None, which fetches tests from the beginning.
2121
22-
to_ : int, optional
23-
Unix timestamp specifying the end time until which tests should be fetched. Default is None, which fetches tests up to the current time.
22+
to_ : int | str, optional
23+
Unix timestamp (int) or string date (e.g., "YYYY-MM-DD") specifying the end time until which tests should be fetched. Default is None, which fetches tests up to the current time.
2424
2525
sync : bool, optional
2626
If True, the function fetches updated and newly created tests to synchronize with the database. Default is False.

hdforce/GetTestsAth.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ def GetTestsAth(athleteId: str, from_: int = None, to_: int = None, sync: bool =
2222
athleteId : str
2323
The unique identifier of the athlete whose tests are to be retrieved.
2424
25-
from_ : int, optional
26-
Unix timestamp specifying the start time from which tests should be fetched. Default is None, which fetches tests from the beginning.
25+
from_ : int | str, optional
26+
Unix timestamp (int) or string date (e.g., "YYYY-MM-DD") specifying the start time from which tests should be fetched. Default is None, which fetches tests from the beginning.
2727
28-
to_ : int, optional
29-
Unix timestamp specifying the end time until which tests should be fetched. Default is None, which fetches tests up to the current time.
28+
to_ : int | str, optional
29+
Unix timestamp (int) or string date (e.g., "YYYY-MM-DD") specifying the end time until which tests should be fetched. Default is None, which fetches tests up to the current time.
3030
3131
sync : bool, optional
3232
If True, the function fetches updated and newly created tests to synchronize with the Hawkin database. Default is False.

hdforce/GetTestsGroup.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ def GetTestsGroup(groupId: str, from_: int = None, to_: int = None, sync: bool =
2222
groupId : str
2323
A single group ID or a comma-separated string of group IDs to receive tests from specific groups.
2424
25-
from_ : int, optional
26-
Unix timestamp specifying the start time from which tests should be fetched. Default is None, which fetches tests from the beginning.
25+
from_ : int | str, optional
26+
Unix timestamp (int) or string date (e.g., "YYYY-MM-DD") specifying the start time from which tests should be fetched. Default is None, which fetches tests from the beginning.
2727
28-
to_ : int, optional
29-
Unix timestamp specifying the end time until which tests should be fetched. Default is None, which fetches tests up to the current time.
28+
to_ : int | str, optional
29+
Unix timestamp (int) or string date (e.g., "YYYY-MM-DD") specifying the end time until which tests should be fetched. Default is None, which fetches tests up to the current time.
3030
3131
sync : bool, optional
3232
If True, the function fetches updated and newly created tests to synchronize with the database. Default is False.

hdforce/GetTestsTeam.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ def GetTestsTeam(teamId: str, from_: int = None, to_: int = None, sync: bool = F
2121
teamId : str
2222
A single team ID, tuple or list of team IDs to receive tests from specific teams.
2323
24-
from_ : int, optional
25-
Unix timestamp specifying the start time from which tests should be fetched. Default is None, which fetches tests from the beginning.
24+
from_ : int | str, optional
25+
Unix timestamp (int) or string date (e.g., "YYYY-MM-DD") specifying the start time from which tests should be fetched. Default is None, which fetches tests from the beginning.
2626
27-
to_ : int, optional
28-
Unix timestamp specifying the end time until which tests should be fetched. Default is None, which fetches tests up to the current time.
27+
to_ : int | str, optional
28+
Unix timestamp (int) or string date (e.g., "YYYY-MM-DD") specifying the end time until which tests should be fetched. Default is None, which fetches tests up to the current time.
2929
3030
sync : bool, optional
3131
If True, the function fetches updated and newly created tests to synchronize with the database. Default is False.

hdforce/GetTestsType.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ def GetTestsType(typeId: str, from_: int = None, to_: int = None, sync: bool = F
2222
typeId : str
2323
The canonical test ID, test type name, or test name abbreviation. Must correspond to known test types.
2424
25-
from_ : int, optional
26-
Unix timestamp specifying the start time from which tests should be fetched. Default is None, which fetches tests from the beginning.
25+
from_ : int | str, optional
26+
Unix timestamp (int) or string date (e.g., "YYYY-MM-DD") specifying the start time from which tests should be fetched. Default is None, which fetches tests from the beginning.
2727
28-
to_ : int, optional
29-
Unix timestamp specifying the end time until which tests should be fetched. Default is None, which fetches tests up to the current time.
28+
to_ : int | str, optional
29+
Unix timestamp (int) or string date (e.g., "YYYY-MM-DD") specifying the end time until which tests should be fetched. Default is None, which fetches tests up to the current time.
3030
3131
sync : bool, optional
3232
If True, the function fetches updated and newly created tests to synchronize with the database. Default is False.

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ classifiers = [
1717
"Programming Language :: Python :: 3.10",
1818
"Programming Language :: Python :: 3.11",
1919
"Programming Language :: Python :: 3.12",
20+
"Programming Language :: Python :: 3.13",
2021
]
2122

2223

0 commit comments

Comments
 (0)