Changelog¶
The garnett package follows semantic versioning.
Unreleased Changes¶
Fixed¶
- Fixed frame ordering for some trajectories read by GetarFileReader. Previously frames were ordered pseudo-arbitrarily depending on a bisection using lexicographic ordering of strings, rather than the key order specified by the gtar library.
Added¶
- Added support to GetarFileWriter for writing trajectories containing frames with some missing per-particle quantities.
Version 0.7¶
Added¶
- Added ability to read
_space_group_symop_operation_xyzkeys in CIF files. - Added
to_hoomd_snapshotmethod toFrameobjects. Replaces the deprecatedmake_snapshotandcopyto_snapshotmethods. - The CIF reader supports a broader range of
_atom_site_labelvalues that match component 0 as specified here. - Enabled
type_shapeforSphereUnionShapeclass. - Added ability to read getar files with dynamic properties (such as
type_shapes.json) stored at a different period than positions. - Added
boxproperty toTrajectoryobjects. - Added
Nproperty toFrameobjects.
Changed¶
- Updated GSD reader to use the GSD v2 API.
- Changed behavior of
types,typeid,type_shapesto match HOOMD conventions. - Shapes can still be read from GSD via HOOMD-HPMC state but shapes are always written to
type_shapesinstead of the HPMC state. PosFileWriterrequires the number oftype_shapesto match the number oftypes.
Fixed¶
- Fixed finding nearest image when applying space group operations to CIF files. The meaning of the
toleranceparameter is also adjusted to be absolute (in units of fractional coordinates), rather than relative.
Deprecated¶
- The following
FrameandTrajectoryattributes have been deprecated:positions(nowposition)orientations(noworientation)velocities(nowvelocity)shapedefdict has been replaced bytype_shapeslist. Until this feature is removed, altering shape definitions is only supported if the entire dictionary is set at once.
- The following
Framemethods have been deprecated:make_snapshot(useto_hoomd_snapshot())copyto_snapshot(useto_hoomd_snapshot(snap)
- The following
trajectorymodule-level functions have been deprecated:make_hoomd_blue_snapshot(useframe.to_hoomd_snapshot())copyfrom_hoomd_blue_snapshot(useFrame.from_hoomd_snapshot(snap))copyto_hoomd_blue_snapshot(useframe.to_hoomd_snapshot(snap))
Removed¶
- The
Frame.frame_dataproperty andFrameDataclass have been removed from the public API.
Version 0.6¶
Fixed¶
- Fix installation instructions with pip.
- Removed unnecessary extra headers from changelog.
[0.6.0] – 2019-11-04¶
Added¶
- Added
showEdgesto skipped fields when reading POS files. - Added
to_plato_scene()method to quickly visualizeFrameobjects. - Added support for the GSD shape visualization specification.
Changed¶
- GSD and GTAR writers now output shape information that adheres to the GSD shape visualization specification.
Removed¶
- Dropped Python 2 support.
Fixed¶
- Fix minor bug in
PosFileWriterwhere default shape definition was incorrectly written.
Version 0.5¶
Added¶
- Added rowan as a dependency.
- Add GETAR file reader/writer.
- Add
shape_dictrepresentation toShapeclasses. - Add support for particle properties:
- mass
- charge
- diameter
- image
- moment of inertia
- angular momentum
- Add support for reading/writing shapes in GSD via HOOMD-HPMC state.
- Add universal reader/writer with format detection.
- Add orientable attribute to spheres.
- Extend list of supported shape classes:
- ellipsoid
- polygon
- spheropolygon
- convex polyhedron
- convex spheropolyhedron
Changed¶
- Raise
AttributeErrorif accessing a frame or trajectory property not defined in the file. - Rename several existing shape classes.
- Improve unit test coverage.
- Revise documentation.
- Move shape definitions to separate module.
Deprecated¶
- Tests for Python 2 are no longer updated (Python 2 support will be dropped in the next minor release).
Removed¶
- Remove acceleration as supported property.
- Remove the
read_gsd_shape_dataflag from GSD reader.
Version 0.4¶
Added¶
- Add readers/writers:
- CIF reader
- GSD writer
- Support shape definitions:
- spheropolyhedron
- polyunion
- convex polyhedron union
- Add
gf2posscript - convert to pos-file from any supported format. - Add shape definitions to
GetarFileReader. - Interpret the pos-file rotation key word.
Changed¶
GetarFileReaderskips records that have a non-empty group field.- Improve algorithm for the normalization of frames with non-standard box.
- Various documentation updates.
Version 0.3¶
Added¶
- The
GSDReadernow reads velocities. - Support
PolyVshape definitions.
Changed¶
- Update documentation concerning the conversion of rotations from quaternions to euler angles.
Fixed¶
- Hot fix: Negative euler angles were not read correctly in skewed boxes using the
DCDFileReader.
[0.3.7] – 2016-11-07¶
Added¶
- Add the
whenceargument to the file format’s seek method.
Fixed¶
- Fix bug in
DCDfilereaderleading to incorrect box dimensions to be read for skewed boxes. Cubic or squared boxes are not affected.
[0.3.6] – 2016-10-20¶
Fixed¶
- Fix quaternion to euler angle conversion example in the DCD file reader documentation.
[0.3.5] – 2016-09-20¶
Changed¶
GSDHOOMDFileReaderuses the native GSD library if installed.- Reduced warning verbosity.
Fixed¶
- Fix bug that caused the
GSDHOOMDFileReaderto ignore dimensions specified in the GSD file.
[0.3.4] – 2016-09-08¶
Added¶
- Support velocities in HOOMD-blue XML files.
- Support
SphereUnionShapeinPosFileReader.
Changed¶
- Support Pos-Files using the keyword ‘box’ instead of ‘boxMatrix’
Fixed¶
- Fix bug in
PosFileReaderwhich occured with non-standard pos-file in python 3.5 - Fix bug, which occured when constructing frames from raw frames using box instances instead of a box matrix.
[0.3.3] – 2016-07-19¶
Fixed¶
- Fix bug related to 2-dimensional systems and a box z-dimensions not equal to 1.
[0.3.2] – 2016-07-15¶
Added¶
- Add
trajectory.N,trajectory.typeandtrajectory.type_idsas an alternative mode to access frame length and type information.
Added¶
- Provide a highly optimized cythonized
DCDFileReader. - Allow trajectory data acess via coherent numpy arrays.
- Make snapshot creation and copying HOOMD-blue 2.0 compatible.
Changed¶
- Update the GSD module.
- Improve the
Boxclass documentation. - Overall improvement of the documentation.
Fixed¶
- Fix and optimize the pure-python
DCDFileReader.