biomechzoo 0.4.9__tar.gz → 0.4.10__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 biomechzoo might be problematic. Click here for more details.

Files changed (56) hide show
  1. {biomechzoo-0.4.9/src/biomechzoo.egg-info → biomechzoo-0.4.10}/PKG-INFO +2 -1
  2. {biomechzoo-0.4.9 → biomechzoo-0.4.10}/README.md +1 -0
  3. {biomechzoo-0.4.9 → biomechzoo-0.4.10}/pyproject.toml +1 -1
  4. {biomechzoo-0.4.9 → biomechzoo-0.4.10}/src/biomechzoo/biomechzoo.py +4 -4
  5. {biomechzoo-0.4.9 → biomechzoo-0.4.10}/src/biomechzoo/processing/addevent_data.py +10 -0
  6. {biomechzoo-0.4.9 → biomechzoo-0.4.10/src/biomechzoo.egg-info}/PKG-INFO +2 -1
  7. {biomechzoo-0.4.9 → biomechzoo-0.4.10}/LICENSE +0 -0
  8. {biomechzoo-0.4.9 → biomechzoo-0.4.10}/setup.cfg +0 -0
  9. {biomechzoo-0.4.9 → biomechzoo-0.4.10}/src/__init__.py +0 -0
  10. {biomechzoo-0.4.9 → biomechzoo-0.4.10}/src/biomechzoo/__init__.py +0 -0
  11. {biomechzoo-0.4.9 → biomechzoo-0.4.10}/src/biomechzoo/__main__.py +0 -0
  12. {biomechzoo-0.4.9 → biomechzoo-0.4.10}/src/biomechzoo/biomech_ops/__init__.py +0 -0
  13. {biomechzoo-0.4.9 → biomechzoo-0.4.10}/src/biomechzoo/biomech_ops/continuous_relative_phase_data.py +0 -0
  14. {biomechzoo-0.4.9 → biomechzoo-0.4.10}/src/biomechzoo/biomech_ops/continuous_relative_phase_line.py +0 -0
  15. {biomechzoo-0.4.9 → biomechzoo-0.4.10}/src/biomechzoo/biomech_ops/filter_data.py +0 -0
  16. {biomechzoo-0.4.9 → biomechzoo-0.4.10}/src/biomechzoo/biomech_ops/filter_line.py +0 -0
  17. {biomechzoo-0.4.9 → biomechzoo-0.4.10}/src/biomechzoo/biomech_ops/normalize_data.py +0 -0
  18. {biomechzoo-0.4.9 → biomechzoo-0.4.10}/src/biomechzoo/biomech_ops/normalize_line.py +0 -0
  19. {biomechzoo-0.4.9 → biomechzoo-0.4.10}/src/biomechzoo/biomech_ops/phase_angle_data.py +0 -0
  20. {biomechzoo-0.4.9 → biomechzoo-0.4.10}/src/biomechzoo/biomech_ops/phase_angle_line.py +0 -0
  21. {biomechzoo-0.4.9 → biomechzoo-0.4.10}/src/biomechzoo/conversion/__init__.py +0 -0
  22. {biomechzoo-0.4.9 → biomechzoo-0.4.10}/src/biomechzoo/conversion/c3d2zoo_data.py +0 -0
  23. {biomechzoo-0.4.9 → biomechzoo-0.4.10}/src/biomechzoo/conversion/mvnx2zoo_data.py +0 -0
  24. {biomechzoo-0.4.9 → biomechzoo-0.4.10}/src/biomechzoo/conversion/opencap2zoo_data.py +0 -0
  25. {biomechzoo-0.4.9 → biomechzoo-0.4.10}/src/biomechzoo/conversion/table2zoo_data.py +0 -0
  26. {biomechzoo-0.4.9 → biomechzoo-0.4.10}/src/biomechzoo/mvn/__init__.py +0 -0
  27. {biomechzoo-0.4.9 → biomechzoo-0.4.10}/src/biomechzoo/mvn/load_mvnx.py +0 -0
  28. {biomechzoo-0.4.9 → biomechzoo-0.4.10}/src/biomechzoo/mvn/main_mvnx.py +0 -0
  29. {biomechzoo-0.4.9 → biomechzoo-0.4.10}/src/biomechzoo/mvn/mvn.py +0 -0
  30. {biomechzoo-0.4.9 → biomechzoo-0.4.10}/src/biomechzoo/mvn/mvnx_file_accessor.py +0 -0
  31. {biomechzoo-0.4.9 → biomechzoo-0.4.10}/src/biomechzoo/processing/__init__.py +0 -0
  32. {biomechzoo-0.4.9 → biomechzoo-0.4.10}/src/biomechzoo/processing/add_channel_data.py +0 -0
  33. {biomechzoo-0.4.9 → biomechzoo-0.4.10}/src/biomechzoo/processing/addchannel_data.py +0 -0
  34. {biomechzoo-0.4.9 → biomechzoo-0.4.10}/src/biomechzoo/processing/explodechannel_data.py +0 -0
  35. {biomechzoo-0.4.9 → biomechzoo-0.4.10}/src/biomechzoo/processing/partition_data.py +0 -0
  36. {biomechzoo-0.4.9 → biomechzoo-0.4.10}/src/biomechzoo/processing/removechannel_data.py +0 -0
  37. {biomechzoo-0.4.9 → biomechzoo-0.4.10}/src/biomechzoo/processing/renamechannel_data.py +0 -0
  38. {biomechzoo-0.4.9 → biomechzoo-0.4.10}/src/biomechzoo/processing/renameevent_data.py +0 -0
  39. {biomechzoo-0.4.9 → biomechzoo-0.4.10}/src/biomechzoo/processing/split_trial_by_gait_cycle.py +0 -0
  40. {biomechzoo-0.4.9 → biomechzoo-0.4.10}/src/biomechzoo/utils/__init__.py +0 -0
  41. {biomechzoo-0.4.9 → biomechzoo-0.4.10}/src/biomechzoo/utils/batchdisp.py +0 -0
  42. {biomechzoo-0.4.9 → biomechzoo-0.4.10}/src/biomechzoo/utils/compute_sampling_rate_from_time.py +0 -0
  43. {biomechzoo-0.4.9 → biomechzoo-0.4.10}/src/biomechzoo/utils/engine.py +0 -0
  44. {biomechzoo-0.4.9 → biomechzoo-0.4.10}/src/biomechzoo/utils/findfield.py +0 -0
  45. {biomechzoo-0.4.9 → biomechzoo-0.4.10}/src/biomechzoo/utils/get_split_events.py +0 -0
  46. {biomechzoo-0.4.9 → biomechzoo-0.4.10}/src/biomechzoo/utils/set_zoosystem.py +0 -0
  47. {biomechzoo-0.4.9 → biomechzoo-0.4.10}/src/biomechzoo/utils/split_trial.py +0 -0
  48. {biomechzoo-0.4.9 → biomechzoo-0.4.10}/src/biomechzoo/utils/version.py +0 -0
  49. {biomechzoo-0.4.9 → biomechzoo-0.4.10}/src/biomechzoo/utils/zload.py +0 -0
  50. {biomechzoo-0.4.9 → biomechzoo-0.4.10}/src/biomechzoo/utils/zplot.py +0 -0
  51. {biomechzoo-0.4.9 → biomechzoo-0.4.10}/src/biomechzoo/utils/zsave.py +0 -0
  52. {biomechzoo-0.4.9 → biomechzoo-0.4.10}/src/biomechzoo.egg-info/SOURCES.txt +0 -0
  53. {biomechzoo-0.4.9 → biomechzoo-0.4.10}/src/biomechzoo.egg-info/dependency_links.txt +0 -0
  54. {biomechzoo-0.4.9 → biomechzoo-0.4.10}/src/biomechzoo.egg-info/entry_points.txt +0 -0
  55. {biomechzoo-0.4.9 → biomechzoo-0.4.10}/src/biomechzoo.egg-info/requires.txt +0 -0
  56. {biomechzoo-0.4.9 → biomechzoo-0.4.10}/src/biomechzoo.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: biomechzoo
3
- Version: 0.4.9
3
+ Version: 0.4.10
4
4
  Summary: Python implementation of the biomechZoo toolbox
5
5
  License-Expression: MIT
6
6
  Project-URL: Homepage, https://github.com/mcgillmotionlab/biomechzoo
@@ -37,6 +37,7 @@ See also http://www.github.com/mcgillmotionlab/biomechzoo or http://www.biomechz
37
37
  ### Installing a dev environment
38
38
  conda create -n biomechzoo-dev python=3.11
39
39
  conda activate biomechzoo-dev
40
+ cd biomechzoo root folder
40
41
  pip install -e ".[dev]"
41
42
 
42
43
  ### import issues
@@ -20,6 +20,7 @@ See also http://www.github.com/mcgillmotionlab/biomechzoo or http://www.biomechz
20
20
  ### Installing a dev environment
21
21
  conda create -n biomechzoo-dev python=3.11
22
22
  conda activate biomechzoo-dev
23
+ cd biomechzoo root folder
23
24
  pip install -e ".[dev]"
24
25
 
25
26
  ### import issues
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "biomechzoo"
3
- version = "0.4.9"
3
+ version = "0.4.10"
4
4
  description = "Python implementation of the biomechZoo toolbox"
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.11,<3.12" # max version for opencap-process tools is 3.11
@@ -8,7 +8,7 @@ from biomechzoo.utils.batchdisp import batchdisp
8
8
  from biomechzoo.utils.get_split_events import get_split_events
9
9
  from biomechzoo.utils.split_trial import split_trial
10
10
  from biomechzoo.conversion.c3d2zoo_data import c3d2zoo_data
11
- from biomechzoo.conversion.table2zoo import table2zoo_data
11
+ from biomechzoo.conversion.table2zoo_data import table2zoo_data
12
12
  from biomechzoo.conversion.mvnx2zoo_data import mvnx2zoo_data
13
13
  from biomechzoo.processing.removechannel_data import removechannel_data
14
14
  from biomechzoo.processing.renamechannel_data import renamechannel_data
@@ -306,7 +306,7 @@ class BiomechZoo:
306
306
  # Update self.folder after processing
307
307
  self._update_folder(out_folder, inplace, in_folder)
308
308
 
309
- def addevent(self, ch, evt_type, evt_name, out_folder=None, inplace=None):
309
+ def addevent(self, ch, event_type, event_name, out_folder=None, inplace=None):
310
310
  """ adds events of type evt_type with name evt_name to channel ch """
311
311
  start_time = time.time()
312
312
  verbose = self.verbose
@@ -316,9 +316,9 @@ class BiomechZoo:
316
316
  fl = engine(in_folder, extension='.zoo', name_contains=self.name_contains, subfolders=self.subfolders)
317
317
  for f in fl:
318
318
  if verbose:
319
- batchdisp('adding event {} to channel {} for {}'.format(evt_type, ch, f), level=2, verbose=verbose)
319
+ batchdisp('adding event {} to channel {} for {}'.format(event_type, ch, f), level=2, verbose=verbose)
320
320
  data = zload(f)
321
- data = addevent_data(data, ch, evt_type, evt_name)
321
+ data = addevent_data(data, ch, event_type, event_name)
322
322
  zsave(f, data, inplace=inplace, out_folder=out_folder, root_folder=in_folder)
323
323
  method_name = inspect.currentframe().f_code.co_name
324
324
  batchdisp('{} process complete for {} file(s) in {:.2f} secs'.format(method_name, len(fl), time.time() - start_time), level=1, verbose=verbose)
@@ -37,6 +37,11 @@ def addevent_data(data, ch, ename, etype):
37
37
  elif etype == 'rom':
38
38
  eyd = float(np.max(yd) - np.min(yd))
39
39
  exd = 0 # dummy index (like MATLAB version)
40
+ elif etype == 'max_stance':
41
+ # special event for gait and running
42
+ exd = max_stance(yd)
43
+ eyd = float(yd[exd])
44
+ eyd = float(yd[exd])
40
45
  else:
41
46
  raise ValueError(f'Unknown event type: {etype}')
42
47
 
@@ -44,3 +49,8 @@ def addevent_data(data, ch, ename, etype):
44
49
  data[channel]['event'][ename] = [exd, eyd, 0]
45
50
 
46
51
  return data
52
+
53
+ def max_stance(yd):
54
+ """ extracts max from first 40% of the gait cycle"""
55
+ raise NotImplementedError
56
+ return exd
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: biomechzoo
3
- Version: 0.4.9
3
+ Version: 0.4.10
4
4
  Summary: Python implementation of the biomechZoo toolbox
5
5
  License-Expression: MIT
6
6
  Project-URL: Homepage, https://github.com/mcgillmotionlab/biomechzoo
@@ -37,6 +37,7 @@ See also http://www.github.com/mcgillmotionlab/biomechzoo or http://www.biomechz
37
37
  ### Installing a dev environment
38
38
  conda create -n biomechzoo-dev python=3.11
39
39
  conda activate biomechzoo-dev
40
+ cd biomechzoo root folder
40
41
  pip install -e ".[dev]"
41
42
 
42
43
  ### import issues
File without changes
File without changes
File without changes