| layout | post |
|---|---|
| title | Release 2.9.0 of MDAnalysis |
We are happy to release version 2.9.0 of MDAnalysis!
This is a minor release of the MDAnalysis library, which means that it contains enhancements, bug fixes, deprecations, and other backwards-compatible changes.
This release supports NumPy 2.0+ and offers backwards compatibility through to NumPy 1.23.2.
Supported Python versions: 3.10, 3.11, 3.12, 3.13.
Supported Operating Systems:
To update with mamba (or conda) from the conda-forge channel run
mamba update -c conda-forge mdanalysisTo update from PyPi with pip run
python -m pip install --upgrade MDAnalysisFor more help with installation see the installation instructions in the User Guide. Make sure you are using a Python version compatible with MDAnalysis before upgrading (Python >= 3.10).
For a full list of changes, bug fixes and deprecations see the CHANGELOG.
-
Support for Gromacs v2024.4 and v2025 TPR files.
-
A new "water" keyword for selecting water residues.
-
Support for [distopia][] 0.4.0 as an optional distance library backend that now supports many more distance functions for all box types (including general triclinic unit cells).
On supported x86-64 platforms, install distopia with
mamba install -c conda-forge distopia
You can then enable distopia as a backend to make use of the optimized distopia code for compute-intensive distance calculations, such as
distance_array():protein = u.select_atoms("protein and not name H*") lipids = u.select_atoms("resname POPC CHOL and not name H*") d = MDAnalysis.lib.distances.distance_array(protein, lipids, box=u.dimensions, backend="distopia")
If you want to see if distopia is available as a backend in a running program, check that the variable
MDAnalysis.lib.distances.HAS_DISTOPIAisTrue. -
Parallel analysis support for
MDAnalysis.analysis.nucleicacids,MDAnalysis.analysis.contacts, andMDAnalysis.analysis.density. -
XYZ writer can now write positions up to a user-supplied precision via the
precisionkeyword argument.
MDAnalysis.analysis.hole2,MDAnalysis.analysis.psa, andMDAnalysis.analysis.waterdynamics, are now only available via optional dependencies (the mdahole2, pathsimanalysis, and waterdynamics [MDAKits][]). By default these will not be installed, you will need to install them separately if you wish to use them from withinMDAnalysis.analysis. Please note that in v3.0 theses modules will be removed completely from the MDAnalysis core library and you will need to use the MDAKits directly.fastenersdependency has been switched tofilelock.- Codebase is now formatted with black (version 24)
This release was the work of 10 contributors, 3 of which are new contributors.
Our new contributors are:
- @ChiahsinChu
- @tanishy7777
- @jauy123
MDAnalysis thanks NumFOCUS for its continued support as our fiscal sponsor and the Chan Zuckerberg Initiative for supporting MDAnalysis under EOSS4 and EOSS5 awards.
— @IAlibay and @p-j-smith ([release managers][roles]) on behalf of the [MDAnalysis Team][]
[roles]: {{ site.baseurl }}/team/#roles [MDAnalysis Team]: {{ site.baseurl }}/team [MDAKits]: https://mdakits.mdanalysis.org/ [distopia]: https://github.com/MDAnalysis/distopia