Skip to content

Commit

Permalink
Update manual
Browse files Browse the repository at this point in the history
  • Loading branch information
abelcarreras committed Dec 28, 2020
1 parent dd13523 commit 70bf99c
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 4 deletions.
3 changes: 2 additions & 1 deletion cosymlib/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
__version__ = '0.9.1'

from cosymlib.molecule import Molecule, Geometry
from cosymlib.molecule import Molecule
from cosymlib.molecule.geometry import Geometry
from cosymlib import file_io
from cosymlib import tools
from cosymlib.utils import swap_vectors
Expand Down
4 changes: 3 additions & 1 deletion cosymlib/file_io/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
from cosymlib.molecule import Molecule, Geometry, ElectronicStructure
from cosymlib.molecule import Molecule
from cosymlib.molecule.geometry import Geometry
from cosymlib.molecule.electronic_structure import ElectronicStructure
from cosymlib.file_io.tools import extract_geometries
from cosymlib.tools import atomic_number_to_element
from cosymlib.file_io import custom_errors
Expand Down
11 changes: 10 additions & 1 deletion cosymlib/molecule/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from cosymlib.molecule.geometry import Geometry
#from cosymlib.molecule.geometry import Geometry
from cosymlib.molecule.electronic_structure import ElectronicStructure
from cosymlib.simulation import ExtendedHuckel
from warnings import warn
Expand All @@ -14,9 +14,18 @@ def wrapper(*args, **kwargs):


class Molecule:
"""
Molecule class 2
"""
def __init__(self, geometry,
electronic_structure=None,
name=None):
"""
:param geometry:
:param electronic_structure:
:param name:
"""

if not geometry:
raise Exception('No geometry found in the input file, check out input file for possible errors')
Expand Down
4 changes: 4 additions & 0 deletions cosymlib/molecule/geometry/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ def wrapper(*args, **kwargs):


class Geometry:
"""
Geometry class
"""
def __init__(self,
positions,
symbols=(),
Expand Down
10 changes: 10 additions & 0 deletions docs/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,13 @@ Shape
:members: Shape
:noindex:

Molecule
--------
.. automodule:: cosymlib.molecule
:members: Molecule

Geometry
--------
.. automodule:: cosymlib.molecule.geometry
:members: Geometry

2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
todo_include_todos = False


autodoc_mock_imports = ['cosymlib.molecule.geometry', 'cosymlib.shape.shp', 'wfnsympy', 'symgroupy']
autodoc_mock_imports = ['cosymlib.shape.shp', 'wfnsympy', 'symgroupy']

# -- Options for HTML output ----------------------------------------------

Expand Down

0 comments on commit 70bf99c

Please sign in to comment.