Skip to content

Commit

Permalink
DOC: Missing versionadded tags
Browse files Browse the repository at this point in the history
  • Loading branch information
LaurentRDC committed Dec 30, 2020
1 parent ad51fc9 commit f012938
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 7 additions & 1 deletion crystals/crystal.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,11 @@ def unitcell(self):
maxsize=1
) # This operation is very heavy; better to cache it than recalculate.
def asymmetric_cell(self):
""" Calculates the asymmetric cell that generates the crystal unit cell. """
"""
Calculates the asymmetric cell that generates the crystal unit cell.
.. versionadded:: 1.2.0
"""
return symmetry_reduction(self.unitcell, self.symmetry_operations())

@classmethod
Expand Down Expand Up @@ -880,6 +884,8 @@ def symmetry_reduction(unitcell, symmetry_operators):
Note that the resulting asymmetric cell is not unique.
.. versionadded:: 1.2.0
Parameters
----------
unitcell : iterable of :class:`Atom` and/or :class:`AtomicStructure`
Expand Down
2 changes: 2 additions & 0 deletions crystals/writers.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ def write_cif(crystal, fname):
"""
Generate an atomic coordinates .cif file from a crystal structure.
.. versionadded:: 1.2.0
Parameters
----------
crystal : crystals.Crystal
Expand Down

0 comments on commit f012938

Please sign in to comment.