Skip to content

Commit ddeb0ab

Browse files
update folder name
1 parent ec28e3d commit ddeb0ab

31 files changed

+46
-46
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ pip install -e .[dev]
2727
## Quick start
2828

2929
```python
30-
from core import Smoothness, BilateralSymmetryAnalyzer
31-
from core.data_models.sliding_window import SlidingWindow
30+
from pyeyesweb import Smoothness, BilateralSymmetryAnalyzer
31+
from pyeyesweb.data_models.sliding_window import SlidingWindow
3232
import numpy as np
3333

3434
# Movement smoothness analysis

core/__init__.py

Lines changed: 0 additions & 2 deletions
This file was deleted.

docs/installation.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ pip install -e .
4848
Test your installation:
4949

5050
```python
51-
import core
52-
from core import Smoothness, BilateralSymmetryAnalyzer
51+
import pyeyesweb
52+
from pyeyesweb import Smoothness, BilateralSymmetryAnalyzer
5353
print("PyEyesWeb successfully installed")
5454
```
5555

docs/modules/bilateral_symmetry.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,15 +93,15 @@ Temporal correlation with lag compensation:
9393
### Basic Symmetry Analysis
9494

9595
```python
96-
from core.bilateral_symmetry import BilateralSymmetryAnalyzer
96+
from pyeyesweb.analysis_primitives.bilateral_symmetry import BilateralSymmetryAnalyzer
9797
import numpy as np
9898

9999
# Initialize analyzer
100100
symmetry_analyzer = BilateralSymmetryAnalyzer(window_size=100)
101101

102102
# Load bilateral trajectory data
103-
left_arm = np.load('left_arm_trajectory.npy') # Shape: (n_samples, 3)
104-
right_arm = np.load('right_arm_trajectory.npy') # Shape: (n_samples, 3)
103+
left_arm = np.load('left_arm_trajectory.npy') # Shape: (n_samples, 3)
104+
right_arm = np.load('right_arm_trajectory.npy') # Shape: (n_samples, 3)
105105

106106
# Calculate symmetry metrics
107107
metrics = symmetry_analyzer.calculate_symmetry_index(left_arm, right_arm)

docs/modules/contraction_expansion.md

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,14 @@ Decomposes 3D shapes into tetrahedra and sums volumes using cross products.
4848

4949
```python
5050
import numpy as np
51-
from core.contraction_expansion import _area_2d_fast
51+
from pyeyesweb.low_level.contraction_expansion import _area_2d_fast
5252

5353
# Define four corner points of a movement trajectory
5454
trajectory_points = np.array([
55-
[0.0, 0.0], # Point 1
56-
[1.0, 0.0], # Point 2
57-
[1.0, 1.0], # Point 3
58-
[0.0, 1.0] # Point 4
55+
[0.0, 0.0], # Point 1
56+
[1.0, 0.0], # Point 2
57+
[1.0, 1.0], # Point 3
58+
[0.0, 1.0] # Point 4
5959
])
6060

6161
area = _area_2d_fast(trajectory_points)
@@ -105,26 +105,27 @@ for frame in motion_data:
105105
### 3D Movement Analysis
106106

107107
```python
108-
from core.contraction_expansion import _volume_3d_fast
108+
from pyeyesweb.low_level.contraction_expansion import _volume_3d_fast
109+
109110

110111
# Analyze 3D movement volume changes
111112
def analyze_3d_movement_volume(trajectory_data):
112113
volume_timeline = []
113-
114+
114115
for frame in trajectory_data:
115116
# Extract key 3D points
116117
key_points = extract_key_3d_points(frame)
117-
118+
118119
if len(key_points) >= 4: # Minimum for volume calculation
119120
volume = _volume_3d_fast(key_points)
120121
volume_timeline.append(volume)
121-
122+
122123
# Calculate expansion/contraction phases
123124
expansion_phases = []
124125
for i in range(1, len(volume_timeline)):
125-
if volume_timeline[i] > volume_timeline[i-1]:
126+
if volume_timeline[i] > volume_timeline[i - 1]:
126127
expansion_phases.append(i)
127-
128+
128129
return {
129130
'volume_timeline': volume_timeline,
130131
'expansion_frames': expansion_phases,
@@ -217,8 +218,8 @@ Uses tetrahedron decomposition:
217218
Combine spatial dynamics with movement smoothness:
218219

219220
```python
220-
from core import Smoothness
221-
from core.contraction_expansion import _area_2d_fast
221+
from pyeyesweb import Smoothness
222+
from pyeyesweb.low_level.contraction_expansion import _area_2d_fast
222223

223224
smoothness_analyzer = Smoothness()
224225
spatial_areas = []
@@ -227,7 +228,7 @@ for frame in motion_data:
227228
# Calculate spatial measure
228229
area = _area_2d_fast(extract_corners(frame))
229230
spatial_areas.append(area)
230-
231+
231232
# Analyze spatial smoothness
232233
if len(spatial_areas) >= smoothness_analyzer.min_length:
233234
spatial_smoothness = smoothness_analyzer(spatial_areas)

docs/modules/smoothness.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ Optional Savitzky-Golay filter preprocessing:
6767
### Basic Smoothness Analysis
6868

6969
```python
70-
from core import Smoothness
71-
from core.data_models.sliding_window import SlidingWindow
70+
from pyeyesweb import Smoothness
71+
from pyeyesweb.data_models.sliding_window import SlidingWindow
7272
import numpy as np
7373

7474
# Initialize analyzer

docs/modules/synchronization.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ Time-varying synchronization using overlapping windows:
107107
### Basic Synchronization Analysis
108108

109109
```python
110-
from core.sync import Synchronization
110+
from pyeyesweb.sync import Synchronization
111111
import numpy as np
112112

113113
# Initialize synchronization analyzer

docs/modules/tsv_reader.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ Frame Timestamp MARKER1_X MARKER1_Y MARKER1_Z MARKER2_X MARKER2_Y MARKER2_Z
8181
### Basic File Loading
8282

8383
```python
84-
from core.tsv_reader import TSVReader
84+
from pyeyesweb.utils.tsv_reader import TSVReader
8585

8686
# Load complete motion capture file
8787
reader = TSVReader('motion_capture_data.tsv')

examples/test_bilateral_symmetry.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
import os
1616
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
1717

18-
from core.bilateral_symmetry import BilateralSymmetryAnalyzer
18+
from pyeyesweb.analysis_primitives.bilateral_symmetry import BilateralSymmetryAnalyzer
1919

2020

2121
class RealisticHumanGait:

examples/test_contraction_expansion.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import os
99
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
1010

11-
from core.contraction_expansion import analyze_movement
11+
from pyeyesweb.low_level.contraction_expansion import analyze_movement
1212

1313

1414
def demo_2d_analysis():

0 commit comments

Comments
 (0)