Changelog
Additions
structure.hbond()
supports periodic boundary conditions- Added
structure.remove_pbc()
andstructure.remove_pbc_coord()
, that sanitize structures that are segmented due to periodic boundaries - Write support for trajectory files
- This includes
structure.io.save_structure()
- This includes
- Support for DCD and NetCDF trajectory formats (
structure.io.dcd
andstructure.io.netcdf
)
Changes
- The
coord
andbox
attribute instructure.AtomArray
andstructure.AtomArrayStack
are stored asfloat32
arrays- File readers are changed accordingly
- Previously, both
float64
andfloat32
were allowed, which made type conversions necessary for some functions - If an atom array (stack) is provided with an
float64
array, the type is implicitly converted.
- Faster encoding and decoding in
sequence.LetterAlphabet
- Internally uses
bytes
instead ofstr
for symbols sequence.LetterAlphabet
does only accept ASCII characters
- Internally uses
- Discontinued support for Python type annotations
- May be re-enabled when official type annotations for NumPy arrive
- Changed protected abstract methods in
structure.io.TrajectoryFile
structure.filter_solvent()
regards only theres_name
and ignores thehetero
field
Fixes
structure.io.mmtf.MMTFFile
fields can be set withndarray
objects for non-encoded fields- The
ndarray
objects are implicitly converted intolist
objects
- The
- The
box
attribute ofstructure.AtomArrayStack
objects are correctly sliced when slicing the atom array stack structure.displacement()
,structure.distance()
,structure.angle()
andstructure.dihedral()
acceptstructure.Atom
instances as parameter