Skip to content

Commit b6ac547

Browse files
author
André Böni
committed
+ fix kwargs
1 parent c86025d commit b6ac547

File tree

4 files changed

+9
-8
lines changed

4 files changed

+9
-8
lines changed

docs/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
2626
bibtex_bibfiles = ['_static/Gaitalytics.bib']
2727

2828
bibtex_encoding = 'utf-8'
29-
bibtex_reference_style = "author_year"
30-
bibtex_default_style = "plain"
29+
# bibtex_reference_style = "author_year"
30+
# bibtex_default_style = "plain"
3131

3232
templates_path = ['_templates']
3333
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']

gaitalytics/api.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ def detect_events(
104104
Currently, only "Marker" is supported, which implements
105105
the method from Zenis et al. 2008.
106106
Default is "Marker".
107-
**kwargs: Additional keyword arguments for the event detection method.
107+
**kwargs:
108108
- height: The height of peaks. Default = None
109109
- threshold: The threshold of peaks. Default = None
110110
- distance: The min distance in frames between events. Default = None
@@ -164,7 +164,7 @@ def write_events_to_c3d(
164164
c3d_path: The path to the original c3d file.
165165
event_table: The DataFrame containing the events.
166166
output_path: The path to write the c3d file with the events.
167-
If None, the original file will be overwritten.
167+
If None, the original file will be overwritten.
168168
"""
169169
io.C3dEventFileWriter(c3d_path).write_events(event_table, output_path) # type: ignore
170170

@@ -202,7 +202,7 @@ def time_normalise_trial(
202202
trial: The trial to normalise the time for.
203203
method: The method to use for normalising the time. Currently, only supports
204204
"linear" which normalises the time linearly. Default is "linear".
205-
**kwargs: Additional keyword arguments for the normalisation method.
205+
**kwargs:
206206
- n_frames: The number of frames to normalise the data to.
207207
208208
Returns:
@@ -235,6 +235,7 @@ def calculate_features(
235235
trial: The trial to calculate the features for.
236236
config: The mapping configurations
237237
methods: Class objects of the feature calculation methods to use.
238+
**kwargs: Currently not used.
238239
239240
Returns:
240241
The trial with the calculated features.
@@ -255,7 +256,7 @@ def _create_feature_methods(
255256
Args:
256257
methods: The list of feature calculation methods to use.
257258
config: The mapping configurations
258-
**kwargs: Additional keyword arguments for the methods.
259+
**kwargs: Currently not used.
259260
260261
Returns:
261262
A list of the feature calculation method objects.

gaitalytics/events.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ def __init__(self, configs: mapping.MappingConfigs, **kwargs):
188188
189189
Args:
190190
configs: The mapping configurations.
191-
**kwargs: Additional keyword arguments for the event detection method.
191+
**kwargs:
192192
- height: The height of peaks. Default = None
193193
- threshold: The threshold of peaks. Default = None
194194
- distance: The min distance in frames between events. Default = None

gaitalytics/features.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def __init__(self, config: mapping.MappingConfigs, **kwargs):
2727
2828
Args:
2929
config: The mapping configuration to use for the feature calculation.
30-
**kwargs: Additional keyword arguments.
30+
**kwargs: Currently not used.
3131
"""
3232
self._config = config
3333
self._kwargs = kwargs

0 commit comments

Comments
 (0)