Movement

Latest version: v0.5.0

Safety actively analyzes 722581 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 4

0.5.0

Highlight

Our Regions of Interest (RoI) classes now have a `.plot` method for conveniently showing the RoI with `matplotlib`.
willGraham01 has showcased this and other cool RoI features—like computing distances and angles relative to RoIs—in a new comprehensive example.

![image](https://github.com/user-attachments/assets/1e88b85c-90b4-4a07-a7c4-958109d89fe4)


What's Changed
* `.plot` method for RoIs by willGraham01 in https://github.com/neuroinformatics-unit/movement/pull/447
* Ensure dataset attributes are not set to None by Ishaan0132 in https://github.com/neuroinformatics-unit/movement/pull/493
* Example for Boundary Angle Calculations by willGraham01 in https://github.com/neuroinformatics-unit/movement/pull/440


**Full Changelog**: https://github.com/neuroinformatics-unit/movement/compare/v0.4.0...v0.5.0

0.4.0

What's Changed

sfmig has added the ability to load tracked bounding boxes in our GUI, and has also improved the GUI user experience by matching the colour of the text labels to the colour of the displayed points.

* Data points text labels in napari by sfmig in https://github.com/neuroinformatics-unit/movement/pull/466
* Extend napari plugin to bboxes' centroids by sfmig in https://github.com/neuroinformatics-unit/movement/pull/434

A small fix to the docs:
* Correct confidence_array shape in from_numpy example docstring by Ishaan0132 in https://github.com/neuroinformatics-unit/movement/pull/492


**Full Changelog**: https://github.com/neuroinformatics-unit/movement/compare/v0.3.0...v0.4.0

0.3.0

What's Changed
willGraham01 and stellaprins have summarised their work on spatial navigation features introduced during Jan-Feb 2025 in a [blogpost](https://movement.neuroinformatics.dev/blog/arc-collaboration.html).

* Blog Post for Jan-Feb features by willGraham01 in https://github.com/neuroinformatics-unit/movement/pull/444

With the help of angkul07 we've added a general `rolling_filter` function, which can be used to apply a rolling median, mean, max, or min filters. The more specific `median_filter` function is being deprecated and will be removed in a future release.

* Added a general filter function for mean and median filter by angkul07 in https://github.com/neuroinformatics-unit/movement/pull/455


New Contributors
* angkul07 made their first contribution in https://github.com/neuroinformatics-unit/movement/pull/455

**Full Changelog**: https://github.com/neuroinformatics-unit/movement/compare/v0.2.0...v0.3.0

0.2.0

New feature
* Condition arrays: compute region occupancy by willGraham01 in https://github.com/neuroinformatics-unit/movement/pull/421
Bug fix
* Updated GUI installation instructions by niksirbi in https://github.com/neuroinformatics-unit/movement/pull/478


**Full Changelog**: https://github.com/neuroinformatics-unit/movement/compare/v0.1.0...v0.1.1

0.1.0

The graphical user interface (GUI) is here!

This is the first release including our [napari](https://napari.org/dev/) plugin, which we'll gradually develop into a fully fledged GUI for `movement`. We have been working on a minimal version of this plugin for a while and are happy to share it with the world with this release.

Read [this guide](https://movement.neuroinformatics.dev/user_guide/gui.html) on how to use it.

* Minimal viable version of the `movement` plugin for `napari`. by niksirbi in https://github.com/neuroinformatics-unit/movement/pull/450
* Fix: remove NaN points before passing to points layer by sfmig in https://github.com/neuroinformatics-unit/movement/pull/465

Regions of interest and spatial navigation
This chunk of work was spearheaded by willGraham01 and includes many goodies for analysing tracking data in relation to user-defined regions of interest. Stay tuned for more to come in the next releases.

* Introduce decorator for broadcasting 1D methods by willGraham01 in https://github.com/neuroinformatics-unit/movement/pull/397
* add point_is_inside to BaseRegionOfInterest by stellaprins in https://github.com/neuroinformatics-unit/movement/pull/413
* Fix `compute_signed_angle_2d` using 2D boolean indexing by willGraham01 in https://github.com/neuroinformatics-unit/movement/pull/432
* Add functionality for computing ego- and allocentric angles to RoIs by willGraham01 in https://github.com/neuroinformatics-unit/movement/pull/416
* Remove toggles for signed angle computations by willGraham01 in https://github.com/neuroinformatics-unit/movement/pull/445

Quick plots
Mostly thanks to stellaprins, `movement` now includes a `plots` submodule, currently offering two functions for quickly visualising trajectories and occupancy heatmaps.

* Plotting wrappers: Head Trajectory by stellaprins in https://github.com/neuroinformatics-unit/movement/pull/394
* Plotting Wrappers: Occupancy Histogram by willGraham01 in https://github.com/neuroinformatics-unit/movement/pull/403
* Use `plot_trajectory` in broadcasting example by willGraham01 in https://github.com/neuroinformatics-unit/movement/pull/414
* Sp/417 bug fix plot trajectory by stellaprins in https://github.com/neuroinformatics-unit/movement/pull/425
* Rename plot_trajectory --> plot_centroid_trajectory by sfmig in https://github.com/neuroinformatics-unit/movement/pull/474

New and overhauled examples

Many of our [examples](https://movement.neuroinformatics.dev/examples/index.html) were updated in this release, but we'd like to draw special attention to the ones on pupil tracking and head direction. Our more advanced users may appreciate the new example on broadcasting functions along data dimensions.

* Eye movement example by stellaprins in https://github.com/neuroinformatics-unit/movement/pull/429
* Reframe polar coordinates example around head direction by niksirbi in https://github.com/neuroinformatics-unit/movement/pull/426
* Introduce decorator for broadcasting 1D methods by willGraham01 in https://github.com/neuroinformatics-unit/movement/pull/397

Housekeeping
As usual, it takes lots of work to keep the lights on. We'd like to draw particular attention to two changes that may impact users:
1. We've updated the supported Python versions to 3.11 - 3.13
2. The `print_report` parameter now defaults to `False` for all functions in the `movement.filtering` module.

* Tiny fix in docstrings for `configure_logging` by sfmig in https://github.com/neuroinformatics-unit/movement/pull/411
* replace xarray median and mean with numpy by Kasra-Shirvanian in https://github.com/neuroinformatics-unit/movement/pull/419
* Clarify error raised by ValidHDF5 by niksirbi in https://github.com/neuroinformatics-unit/movement/pull/424
* Update Python versions to adhere to SPEC 0 by adamltyson in https://github.com/neuroinformatics-unit/movement/pull/442
* Remove Intel Macs from CI workflow by niksirbi in https://github.com/neuroinformatics-unit/movement/pull/449
* Add `make` docs note for PowerShell users by lochhh in https://github.com/neuroinformatics-unit/movement/pull/430
* Use raw string for regex by lochhh in https://github.com/neuroinformatics-unit/movement/pull/452
* Set print_report to False by default in filtering functions by Ishaan0132 in https://github.com/neuroinformatics-unit/movement/pull/456
* [pre-commit.ci] pre-commit autoupdate by pre-commit-ci in https://github.com/neuroinformatics-unit/movement/pull/460
* Update test_and_deploy.yml to remove `nodefaults` conda channel by sfmig in https://github.com/neuroinformatics-unit/movement/pull/462

New Contributors
* Kasra-Shirvanian made their first contribution in https://github.com/neuroinformatics-unit/movement/pull/419
* Ishaan0132 made their first contribution in https://github.com/neuroinformatics-unit/movement/pull/456

**Full Changelog**: https://github.com/neuroinformatics-unit/movement/compare/v0.0.23...v0.1.0

0.0.23

What's Changed

New features 🎉
* Add compute_forward_vector_angle function by niksirbi in https://github.com/neuroinformatics-unit/movement/pull/376
* Add transforms module with scale function by stellaprins in https://github.com/neuroinformatics-unit/movement/pull/384
* Introduce basic classes for regions of interest by willGraham01 in https://github.com/neuroinformatics-unit/movement/pull/396

Housekeeping
* Pass kwargs to `interpolate_over_time` by niksirbi in https://github.com/neuroinformatics-unit/movement/pull/383
* Replaced NIU upload action with separate steps by IgorTatarnikov in https://github.com/neuroinformatics-unit/movement/pull/391
* bounding boxes' tracks --> bounding boxes tracks by sfmig in https://github.com/neuroinformatics-unit/movement/pull/392
* Reorganise test fixtures by lochhh in https://github.com/neuroinformatics-unit/movement/pull/380
* [pre-commit.ci] pre-commit autoupdate by pre-commit-ci in https://github.com/neuroinformatics-unit/movement/pull/401
* Use pypa/gh-action-pypi-publish stable release v1 by lochhh in https://github.com/neuroinformatics-unit/movement/pull/404

New Contributors
* IgorTatarnikov made their first contribution in https://github.com/neuroinformatics-unit/movement/pull/391
* stellaprins made their first contribution in https://github.com/neuroinformatics-unit/movement/pull/384

**Full Changelog**: https://github.com/neuroinformatics-unit/movement/compare/v0.0.22...v0.0.23

Page 1 of 4

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.