You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 8549b09
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/).
9
9
10
10
### Added
11
11
12
+
-**ID correspondence between views (3-D projects).** A new **Views** page (page 10, under the Sessions row of the sidebar, reached by Next/Back between Sessions and Calibration; 3-D projects only) records which session is the top view and which the side view, pairs them by two session-name patterns with a `key` group (with an ⓘ help and a live "catches N sessions" line) or by hand, and maps each top-view fish to a side-view fish: by a "Same IDs" tick, or in a table with two highlighted track plots. The project file gains `SessionRef.view_role`, `view_pairs` and `mode.pairing`; `mode.id_map` is gone (projects that contain it still load). It never blocks Next, and 3-D projects still cannot be run.
12
13
-**Session calibration works beyond idtracker.ai.** The Calibration screen describes the mode per tracker, with an ⓘ note linking to each tracker's documentation, and disables it when no session can supply a scale. DeepLabCut, SLEAP and Ctrax raw files take an optional **Scale (pixels per cm)** import option.
13
14
-**`trx.mat` reader (Ctrax / FlyTracker / JAABA).** Built from the documented layout, unverified against a real sample. `pxpermm` becomes the session scale.
14
15
-**Average or median of several idtracker.ai length calibrations.** The average (idtracker.ai's own `length_unit`) stays the default.
Copy file name to clipboardExpand all lines: docs/3d-movement/2026-10-08-3d-roadmap.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,7 @@ build cycle.
11
11
|---|---|---|
12
12
|**C**|**Side-view depth**: a camera-view setting and a continuous vertical-position metric from ordinary 2-D side recordings | nothing unmerged, no 3-D data |
| G |**ID correspondence**: view roles, pairing top and side sessions (regex or by hand), fish mapping between views, a Views step. In design; see [the spec](2026-10-09-id-correspondence-design.md)| E |
14
+
| G |**ID correspondence**: view roles, pairing top and side sessions (regex or by hand), fish mapping between views, a Views step. Done; see [the spec](2026-10-09-id-correspondence-design.md)| E |
15
15
| A | Read 3-D tracker files (Anipose pose-3d CSV, DLC-3D). Metrics run on a chosen plane and z is stored (D-031 as written) |`feat/native-units` merged |
16
16
| B | Metrics that use z: 3-D speed and path length, vertical position, 3-D neighbour distance. **Amends D-031**| A for data, C for the vertical-axis setting |
17
17
| D | Fuse top and side recordings into one 3-D session | B's data model, frame sync, identity matching across views |
- Labels are `Session.identities_labels`, falling back to the 0-based index as text (the same
57
58
fallback as `MappingRule.individual_match`).
@@ -70,16 +71,16 @@ G is built and tested against any two sessions, so it does not wait for F.
70
71
hand-made ones), `update_view_pair(pair)`, `remove_view_pair(top_id, side_id)`, and a
71
72
`viewsChanged` signal wired into `_on_manifest_changed`. Removing a session removes its pairs
72
73
and clears nothing else. All of this is for 3-D projects only; the calls are rejected in 2-D.
73
-
4.**The Views step** (`ui/views_screen.py`, 3-D only, between Sessions and Calibration).
74
+
4.**The Views step** (`ui/views_screen.py`, 3-D only: page 10, belongs to the Sessions sidebar row, reached by Next/Back between Sessions and Calibration in 3-D projects).
74
75
-*Roles and patterns.* A role selector per session and the two regex fields. Each field has an
75
76
ⓘ popover in plain language (what `key` is, three worked examples such as `trial01_top`, and
76
77
a live "this catches N sessions" line), plus a preview that lists unpaired sessions.
77
78
-*Pairs.* One row per pair with the "same IDs" tick, a status (matched, needs matching,
78
79
identity-free) and a manual re-pair option.
79
80
-*Matching.* A table with one row per top-view fish and a dropdown for the side-view fish or
80
81
"no match"; beside it two `TrajectoryView` plots with the selected fish highlighted.
81
-
5.**Navigation.** The sidebar and page lists are static today. Views is a new page, shown only in
82
-
3-D projects; in 2-D it is hidden and skipped by Next and Back. `screen_flow(mode)` returns
82
+
5.**Navigation.** The sidebar and page lists are static today. Views is a new page (page 10, belongs to the
83
+
Sessions sidebar row), shown only in 3-D projects; in 2-D it is hidden and skipped by Next and Back. `screen_flow(mode)` returns
83
84
which variant of the Sessions-to-Calibration route to show. `stage_status` marks Views `empty`
84
85
until every session has a role, `warning` while any pair needs matching or is identity-free,
85
86
and `valid` when every pair has a complete map. It never returns `blocked`.
Copy file name to clipboardExpand all lines: docs/3d-movement/2026-10-09-mode-switch-design.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,14 +29,14 @@ F and G are independent of each other. Order: E, F and G, D, B.
29
29
- The mode is locked once the project has a session. Removing every session unlocks it.
30
30
- A 3-D project cannot run the pipeline or export until D and B exist. Sessions can still be added
31
31
and the project saved.
32
-
- ID correspondence is not built here. E reserves its place in the file (`mode.id_map`) only.
32
+
- ID correspondence is not built here. E reserves its place in the file (`mode.id_map`) only. (G later replaced `id_map` by `view_pairs` and `mode.pairing`.)
Copy file name to clipboardExpand all lines: docs/guide/USER_GUIDE.md
+37Lines changed: 37 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -185,6 +185,43 @@ sidebar shows ⚠ while any session is identity-free.
185
185
- Supported: idtracker.ai 6.x output (the legacy v5 layout is also read). v4 is not supported yet (Track2Data tells you so if it recognises a v4 folder; see
186
186
[sending a v4 sample](../IDTRACKERAI_V4_SAMPLES.md)).
187
187
188
+
### Views (3-D projects)
189
+
190
+
In a 3-D project (set on the Project screen) every fish is tracked in two views, so Track2Data has
191
+
to know which session is the top view, which is the side view, and which top session goes with
192
+
which side session. This is the **Views** page. It appears only in 3-D projects, under the
193
+
**Sessions** row of the sidebar, and **Next** and **Back** pass through it between Sessions and
194
+
Calibration. In 2-D projects it does not exist.
195
+
196
+
-**Roles.** Each session has a **View** selector: *(not set)*, *Top* or *Side*.
197
+
-**Pair by session name.** Two pattern fields, **Top sessions** and **Side sessions**, find the
198
+
pairs from the session names. A pattern is a regular expression, searched anywhere in the session
199
+
id, with a group called `key` that marks the part shared by both views. Sessions whose `key` is
200
+
equal become a pair. Example: `(?P<key>.+)_top$` matches `trial01_top` with key `trial01`, and
201
+
`(?P<key>.+)_side$` matches `trial01_side` with the same key, so the two are paired. The **ⓘ**
202
+
button next to each field explains this in the app. A line under the fields says how many
203
+
sessions each pattern catches and lists unpaired or ambiguous ones (several sessions with the
204
+
same key are not paired). An empty `key` means no match. Press **Pair by pattern** to set the
205
+
roles and create the pairs; pressing it again replaces the pairs it made earlier, and never
206
+
touches pairs you made by hand.
207
+
-**Pairs.** One row per pair, with a **Same IDs** tick, a **Status** and **Remove**. To pair by
208
+
hand, choose a top and a side session below the list (only sessions with that role and not yet in
209
+
a pair are offered) and press **Add pair**. A session belongs to at most one pair.
210
+
-**Same IDs.** Tick it when fish with the same label are the same fish in both views; the fish map
211
+
is then filled in from the labels. Leave it unticked to match by hand.
212
+
-**Match fish.** Select a pair to get a table with one row per top-view fish and a dropdown for the
213
+
side-view fish (or *(no match)*; a side fish already used is marked). Selecting a row highlights
214
+
that fish and its match in the two track plots beside the table.
215
+
-**Status.***Needs matching*: no fish matched yet. *Matched*: a fish map exists (a tooltip lists
216
+
fish still unmatched). Otherwise the status is the problem, for example "cannot match fish: this
217
+
session has no stable identities" (identity-free sessions cannot be matched), "duplicate side
218
+
fish: ...", "unknown top fish: ..." or "3 top fish vs 2 side fish". The sidebar badge is ○ until
219
+
every session has a role, ⚠ while a session is unpaired or a pair needs matching or has no
220
+
stable identities, and ✓ when every pair is matched. It never stops you from continuing.
221
+
222
+
This only records the correspondence. 3-D fusion and 3-D metrics do not exist yet, so a 3-D project
223
+
still cannot be run: Processing, Preview and Export stay blocked.
224
+
188
225
## 3. Calibration
189
226
190
227
Calibration decides which units distances and speeds are reported in. Figure 4 shows the default,
0 commit comments