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 71a8e8c
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: CHANGELOG.md
+7Lines changed: 7 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/).
7
7
8
8
## [Unreleased]
9
9
10
+
### Added
11
+
12
+
-**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
+
-**`trx.mat` reader (Ctrax / FlyTracker / JAABA).** Built from the documented layout, unverified against a real sample. `pxpermm` becomes the session scale.
14
+
-**Average or median of several idtracker.ai length calibrations.** The average (idtracker.ai's own `length_unit`) stays the default.
15
+
-**Wiki and guide:** the user guide, Before You Record, Glossary, Compatibility, Known Issues and Formats pages describe the per-tracker scale and the readers that exist today.
16
+
10
17
### Fixed
11
18
12
19
-**The test run no longer crashes at exit, and runs about three times faster.** After every test had passed, the Qt
Copy file name to clipboardExpand all lines: docs/INTEROPERABILITY.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -134,7 +134,8 @@ ds = xr.Dataset(
134
134
|`movement` xarray | 📋 documented above | Not implemented |
135
135
| DeepLabCut CSV input (also Lightning Pose, EKS) | ✅ supported | One session per prediction file; the frame rate and frame size are options you give (the file records neither); one keypoint stands for the animal and the whole skeleton is stored beside it. See `docs/tracker-formats/README.md`. |
136
136
| SLEAP analysis HDF5 input | ✅ supported | In SLEAP choose *File > Export Analysis HDF5*. One session per file; the frame rate and frame size are options you give; one skeleton node stands for the animal and the whole skeleton is stored beside it. `.slp` project files are not read. See `docs/tracker-formats/README.md`. |
137
-
| Ctrax raw `.mat` input | ✅ supported | The file Ctrax's *Save Tracks as Matlab File* writes. Frame size is an option you give; the frame rate comes from the file. Ctrax track ids are fragments, so a session is identity-free and one slot per id (`top_n` keeps the longest). `trx.mat` (Ctrax / FlyTracker / JAABA) is not read yet. See `docs/tracker-formats/README.md`. |
137
+
| Ctrax raw `.mat` input | ✅ supported | The file Ctrax's *Save Tracks as Matlab File* writes. Frame size is an option you give; the frame rate comes from the file. Ctrax track ids are fragments, so a session is identity-free and one slot per id (`top_n` keeps the longest). See `docs/tracker-formats/README.md`. |
138
+
|`trx.mat` input (Ctrax / FlyTracker / JAABA) | 🧪 synthetic only | A classic (v5/v7) MATLAB file holding a `trx` struct, built from the documented layout with no real sample pinned yet. Frame size is an option; `fps` is read from the file. `pxpermm` (pixels per mm) becomes the session scale for Session calibration, pending the usual unit confirmation; a value of exactly 1 is ignored. v7.3 files are not read. |
138
139
| DeepLabCut `.h5` input | 🕒 planned | Waiting on the decoder decision in the reader rollout (`docs/tracker-formats/`). Until then export DeepLabCut as CSV. A reader plug-in is also possible — see the `track2data.readers` entry point in `CONTRIBUTING.md`. |
139
140
| NWB | ❌ not planned | Would be worth revisiting if the behavioural-NWB extensions stabilise. |
Copy file name to clipboardExpand all lines: docs/guide/USER_GUIDE.md
+42-14Lines changed: 42 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -193,7 +193,7 @@ Calibration decides which units distances and speeds are reported in. Figure 4 s
193
193
|---|---|---|
194
194
|**Body length** (recommended) | You do not have a reliable scale |`*_bl` columns: distances in body lengths. Physical `*_cm` columns stay empty. |
195
195
|**Custom (px per unit)**| You know the scale |`*_cm` columns, and `*_bl` columns too whenever the tracker recorded body length |
196
-
|**Session calibration**|You used idtracker.ai's *Length Calibration* tool | each session's own ratio; you must confirm the unit |
196
+
|**Session calibration**|Each session already carries a scale: idtracker.ai's *Length Calibration* tool, a Ctrax / JAABA `trx.mat``pxpermm`, or a scale you gave when importing| each session's own ratio; you must confirm the unit |
197
197
198
198
In Session calibration mode, Track2Data also records how much your length-calibration clicks disagreed
199
199
(a relative spread, saved in `sessions.csv` as `length_calibration_rel_sd`) and warns when it is above 5%.
@@ -216,6 +216,33 @@ you. A third click starts the measurement over.
216
216
If a mode is incomplete (no scale, or an unconfirmed unit) the stage shows ✗ and **Next** is
217
217
disabled until you fix it.
218
218
219
+
### Session calibration: where each tracker's scale comes from
220
+
221
+
Only some trackers record a scale. The **ⓘ** button beside the description opens a short note on
222
+
what each tracker in your project records, with links to its documentation. Figure 6 shows the mode.
<figcaption><b>Figure 6.</b> Session calibration: the unit, the choice between several calibrations, the confirmation and each session's readiness.</figcaption>
227
+
</figure>
228
+
229
+
| Tracker | Where the scale comes from |
230
+
|---|---|
231
+
|**idtracker.ai**| The Validator's *Length Calibration* tool saves one or more measurements. `length_unit` is their average: a factor from pixels to *user-defined units*. idtracker.ai does not record whether you measured in cm or mm, so the **Unit** you pick is your own declaration and you must confirm it. See the [idtrackerai.Session reference](https://idtracker.ai/latest/reference/generated/idtrackerai.Session.html). |
232
+
|**Ctrax / JAABA `trx.mat`**|`pxpermm` (pixels per millimetre), present once the file's units were converted. Track2Data turns it into pixels per cm and ignores a value of exactly 1, which those tools use for "never calibrated". See [the Ctrax trx fields](https://ctrax.sourceforge.net/bmat.html). |
233
+
|**DeepLabCut, SLEAP, Ctrax raw `.mat`**| Their files record no scale. Give **Scale (pixels per cm)** in the confirm step when you add the sessions, or use **Custom** or **Body length**. |
234
+
235
+
The per-session readiness list says whether each session is calibrated and with which value. A
236
+
session without a scale reads *not calibrated* (idtracker.ai) or *no scale set at import* (other
237
+
trackers). The **Session calibration** card is disabled when no session in the project can supply a
238
+
scale.
239
+
240
+
**Several calibrations.** An idtracker.ai session can hold several length measurements. With
241
+
**Several calibrations** you choose **Average** (idtracker.ai's own `length_unit`, the default) or
242
+
**Median** (one badly placed click cannot move it). The list shows which one is in use, for example
243
+
*median of 3*. If the saved `length_unit` differs from the average of the session's measurements
244
+
(they were edited after export), the saved value is used and the run log carries a warning.
245
+
219
246
### Camera view
220
247
221
248
Further down the same screen, **Camera view** says how the camera looked at the animals: **Not
@@ -245,7 +272,7 @@ one. You can:
245
272
246
273
<figure>
247
274
<imgsrc="images/04-zones.png"alt="Zones list">
248
-
<figcaption><b>Figure 6.</b> The zone list, with the import and load buttons.</figcaption>
275
+
<figcaption><b>Figure 7.</b> The zone list, with the import and load buttons.</figcaption>
<figcaption><b>Figure 17.</b> Ready-to-paste R and Python snippets for the files just written.</figcaption>
546
+
<figcaption><b>Figure 18.</b> Ready-to-paste R and Python snippets for the files just written.</figcaption>
520
547
</figure>
521
548
522
549
See [Understanding the output files](#understanding-the-output-files) for what the columns mean.
@@ -563,6 +590,7 @@ Definitions, formulas and references for every metric: [`docs/METRICS_SPEC.md`](
563
590
| You see | Why | What to do |
564
591
|---|---|---|
565
592
|**Next** is disabled | A required stage is empty or invalid | Hover over Next: the tooltip names the problem. Check the ✗ / ○ badges in the sidebar |
593
+
|*"Session calibration selected but these sessions have no length_unit"*| A session has no scale (idtracker.ai never calibrated it, or the other tracker's file records none) | Calibrate it in the idtracker.ai Validator, give **Scale (pixels per cm)** when importing, or switch the calibration mode |
566
594
|*"No reader recognised the session folder"*| The folder is not an idtracker.ai output | Pick the session folder itself (the one containing `trajectories/`). Supported: idtracker.ai 6.x output (the legacy v5 layout also works); v4 is not supported yet (a v4-looking folder gets a specific message; see [sending a v4 sample](../IDTRACKERAI_V4_SAMPLES.md)) |
567
595
| Video column says *Not found*| The video path idtracker.ai recorded does not exist on this computer | Select the session and press **Locate Video…** (Sessions). Metrics do not need the video |
568
596
|*READER_NOT_AVAILABLE*| A project session was added with software this version of Track2Data does not have | Install a version that has that reader. Track2Data will not read it with a different one, since that could change the numbers |
0 commit comments