Skip to content

Commit

Permalink
Merge pull request SUNCAT-Center#117 from medford-group/master
Browse files Browse the repository at this point in the history
Added install_requires, removed __version__ import.
  • Loading branch information
gusmaogabriels authored May 16, 2019
2 parents 524fff8 + fb0ba9f commit ab65b8e
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 4 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,20 @@

## INSTALLATION

### pip/setup.py

CatMap can be installed directly via pip:

pip install --upgrade https://github.com/SUNCAT-Center/catmap/zipball/master

or download/clone the repository and run

python setup.py install

as of the repository root folder.

### via add-to Path

To use the package add this directory to the PYTHONPATH, e.g. in bash
shell:

Expand Down
4 changes: 2 additions & 2 deletions catmap/parsers/parser_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from catmap import ReactionModelWrapper
from catmap.model import ReactionModel

from catmap.functions import get_composition
from catmap.functions import get_composition, cartesian_product

class ParserBase(ReactionModelWrapper):
def __init__(self,reaction_model=None):
Expand Down Expand Up @@ -143,7 +143,7 @@ def _baseparse(self):
cart_product.append(possibles)

ref_sets = []
for prod in catmap.functions.cartesian_product(*cart_product):
for prod in cartesian_product(*cart_product):
refdict = {}
for ai,pi in zip(all_atoms,prod):
refdict[ai] = pi
Expand Down
10 changes: 8 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
from setuptools import setup
except ImportError:
from distutils.core import setup
from catmap import __version__ as version
#from catmap import __version__ as version
__version__ = "0.3.1"

maintainer = 'Andrew J. Medford'
maintainer_email = 'ajmedfor@slac.stanford.edu'
Expand Down Expand Up @@ -77,5 +78,10 @@
platforms=platforms,
scripts=scripts,
url=url,
version=version,
version=__version__,
install_requires = ['ase>=3.17',
'matplotlib',
'mpmath',
'numpy',
'graphviz']
)

0 comments on commit ab65b8e

Please # to comment.