Skip to content

Commit

Permalink
Update docstrings of Cosymlib class
Browse files Browse the repository at this point in the history
  • Loading branch information
abelcarreras committed Dec 28, 2020
1 parent a712112 commit 7c21403
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cosymlib/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class Cosymlib:
"""
Main cosymlib class
:param structures: List of Geometry or Molecule type objects
:param structures: List of :class:`~cosymlib.molecule.geometry.Geometry` or :class:`~cosymlib.molecule.Molecule` type objects
:type structures: list
:param ignore_atoms_labels: Ignore atomic element labels is symmetry calculations
:type ignore_atoms_labels: bool
Expand Down Expand Up @@ -92,7 +92,7 @@ def get_geometries(self):
"""
Get the geometries
:return: List of Geometry objects
:return: List of :class:`~cosymlib.molecule.geometry.Geometry` objects
:rtype: list
"""
return [mol.geometry for mol in self._molecules]
Expand All @@ -111,7 +111,7 @@ def molecules(self):
"""
Get the molecules
:return: List of Molecule objects
:return: List of :class:`~cosymlib.molecule.Molecule` objects
:rtype: list
"""
return self._molecules
Expand Down
12 changes: 12 additions & 0 deletions cosymlib/molecule/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,22 @@ def name(self):

@property
def geometry(self):
"""
Get the geometry
:return: The geometry
:rtype: Geometry
"""
return self._geometry

@property
def electronic_structure(self):
"""
Get the electronic structure
:return: The electronic structure
:rtype: ElectronicStructure
"""
if self._electronic_structure is None:
warn('Warning: Electronic structure auto generated from extended Huckel')
eh = ExtendedHuckel(self.geometry)
Expand Down

0 comments on commit 7c21403

Please sign in to comment.