probebehavior
Water maze probe tests aligned on the first arrival at the empty goal.
In a probe test the platform is gone. The first time the animal reaches its former location is the moment its
expectation is violated. Standard probe measures (time in the target quadrant, crossings, proximity) summarise the whole
test; strategy classifiers such as Rtrack are trained on trials that end at the platform. probebehavior splits each
probe at the first arrival and describes the search that follows.
Measures after the first arrival
For each probe, with the default settings:
| Column | Meaning |
|---|---|
reached |
whether the animal entered the goal at all |
arrival_latency_s |
time of the first entry into the goal |
path_efficiency |
straight-line distance from the start to the goal edge divided by the path swum until arrival |
persistence |
fraction of the 15 s after arrival spent within 20 cm of the goal centre |
reentries |
entries into the goal in those 15 s, after the first |
first_stay_s |
time from arrival until the animal first leaves the 20-cm zone |
mean_distance |
mean distance to the goal in those 15 s |
speed |
path length in those 15 s divided by their duration |
turning_deg_s |
mean absolute heading change per second while swimming, in those 15 s |
wall_latency_s |
time from arrival to the first entry into the wall band (outer 20% of the radius), within 30 s |
wall_censored |
true when the wall band was not reached within 30 s |
other_locations_visits |
visits to the goal location rotated by 90°, 180° and 270° (other quadrants), within 30 s |
window_s |
length of the window actually used (only differs from 15 s with partial_window) |
Measures that need a full window after arrival are left empty when the probe ends first; with
Settings(partial_window=True) late arrivals use the time left instead (at least min_window). Aligned curves (distance
to goal, distance to wall, speed) are returned on a 1-s grid from 5 s before to 30 s after arrival. All windows, radii and
the probe length are settings.
Classic measures, also split at the arrival
classic_measures returns the usual probe measures for the whole probe and separately before (_pre) and after
(_post) the first arrival:
| Column | Meaning |
|---|---|
quadrant_pct |
% of time in the target quadrant, centred on the goal (within 45° of its direction), as in Rtrack |
proximity |
mean distance to the goal (Gallagher proximity) |
crossings |
entries into the goal (in _post, the re-entries after the first arrival) |
thigmotaxis_pct |
% of time in the wall band |
duration_s |
length of the segment |
measure_experiment adds them to every row (turn off with classic=False or --no-classic).
Strategies before the arrival, with Rtrack
Before the first arrival a probe is trial-like, which is where Rtrack's strategy calls apply. export_pre_arrival
writes each probe up to and including the first arrival (whole probe when the goal is never reached) with an Rtrack
experiment table, so Rtrack can classify that part while probebehavior describes the rest.
Use
import probebehavior as pb
arena = pb.read_rtrack_arena('arenas/day8.txt') # or pb.Arena((0, 0), 100, (42.3, 37.6), 6)
track = pb.read_track('tracks/rat01_PT1.csv')
metrics, curves = pb.measure(*track, arena)
classic = pb.classic_measures(*track, arena)
Many probes at once, from an Rtrack experiment table (_TrackID, _Arena, _TrackFile, plus any other columns):
probebehavior experiment.csv --out probes.csv --curves curves.csv --export-pre-arrival for_rtrack/
Tracks are delimited text with time (s) and x, y in the arena units (cm); arenas use the Rtrack description
(arena.bounds = circle cx cy r, goal = circle gx gy r), so the same files serve both tools.
Download and install
With pip, from PyPI:
pip install probebehavior
A given version, as used in a paper:
pip install probebehavior==0.1.1
Version 0.1.1 has the same code as 0.1.0 (only the package metadata changed). The development version comes straight
from GitHub: pip install git+https://github.com/RodrigoOrvate/probebehavior.
Or download the source of any release from the releases page or
its archived copy on Zenodo, and run pip install . in the unpacked
folder. From a clone, with the tests:
pip install -e ".[test]"
pytest
Availability
| Source code | https://github.com/RodrigoOrvate/probebehavior |
| Archived releases | Zenodo, doi:10.5281/zenodo.23888805 (all versions; each version also has its own DOI) |
| Requirements | Python 3.9 or later, NumPy, pandas |
| Tested on | Python 3.9, 3.11 and 3.13 (GitHub Actions, every push) |
| License | MIT |
| Issues and questions | https://github.com/RodrigoOrvate/probebehavior/issues |
Citation
If you use probebehavior, please cite it:
Orvate R, Cammarota M (2026). probebehavior: water maze probe tests aligned on the first arrival at the empty goal. Zenodo. https://doi.org/10.5281/zenodo.23888805
This DOI always resolves to the latest version; the Zenodo page lists the DOI of each version, for citing the exact one
you used. GitHub's "Cite this repository" button reads CITATION.cff.
License
MIT.
Metadata
Release files for probebehavior 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| probebehavior-0.1.1.tar.gz | 13.9 kB | With provenance | Details for probebehavior-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| probebehavior-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for probebehavior-0.1.1-py3-none-any.whl |
Total release size: 25.4 kB
Release files / probebehavior-0.1.1.tar.gz
| Download URL | probebehavior-0.1.1.tar.gz |
|---|---|
| Size | 13.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a44e28bdc1469ffa32b397372ce8e62c9b66a3346972dabbcf40b0e485bd7a97
|
|
BLAKE2b-256 checksum How to use checksums |
5c0b1783fd4d4a5c55bf07f3502b7f90fa119574b38dedb882acd68e08829836
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 3, 2026.
Transparency logRelease files / probebehavior-0.1.1-py3-none-any.whl
| Download URL | probebehavior-0.1.1-py3-none-any.whl |
|---|---|
| Size | 11.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
aa408a765cedbca18dfac752dd9b30692013e7c0bbbe5ccecee0b84eb7214807
|
|
BLAKE2b-256 checksum How to use checksums |
5153f33de9331b945ac0cd8f274818bc38f360079d84cc78c5ac73c72712e345
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 3, 2026.
Transparency logSecurity for probebehavior 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for probebehavior-0.1.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 3, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.