Skip to content

Commit 071c7dc

Browse files
committed
RMG-Py v2.3.0 release
2 parents 1668d08 + 7ec72c2 commit 071c7dc

File tree

255 files changed

+14535
-2774
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

255 files changed

+14535
-2774
lines changed
File renamed without changes.
File renamed without changes.

meta.yaml renamed to .conda/meta.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ package:
44
version: {{ environ.get('GIT_DESCRIBE_TAG', '') }}
55

66
source:
7-
path: .
7+
path: ../
88

99
build:
1010
number: {{ environ.get('GIT_DESCRIBE_NUMBER', 0) }}
@@ -48,6 +48,7 @@ requirements:
4848
- matplotlib >=1.5
4949
- mock
5050
- mopac
51+
- mpmath
5152
- nose
5253
- {{ pin_compatible('numpy') }}
5354
- openbabel >=2.4.1
@@ -62,11 +63,12 @@ requirements:
6263
- pyzmq
6364
- quantities
6465
- rdkit >=2015.09.2
65-
- rmgdatabase >=2.2.0
66+
- rmgdatabase >=2.3.0
6667
- scipy
6768
- scoop
6869
- symmetry
6970
- xlwt
71+
- dde
7072

7173
test:
7274
source_files:

.coveragerc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ exclude_lines =
1717
raise NotImplementedError
1818
if 0:
1919
if __name__ == .__main__.:
20+
omit = *Test.py
2021

2122
[html]
2223
directory = testing/coverage

.github/ISSUE_TEMPLATE/question.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ General area which your question is related to.
1111
- [ ] Installation of RMG
1212
- [ ] Running an RMG job
1313
- [ ] Using RMG API
14-
- [ ] CanTherm
14+
- [ ] Arkane (formerly CanTherm)
1515
- [ ] Dependencies
1616
- [ ] An error message <!-- consider writing a bug report instead -->
1717

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ nbproject/*
3939
.pydevproject
4040
.settings/*
4141

42+
# PyCharm project files
43+
.idea/*
44+
4245
# Unit test files
4346
.coverage
4447
testing/*

.travis.yml

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,10 @@ env:
1111

1212
stages:
1313
- test
14+
- name: documentation
15+
if: branch = master AND type = push
1416
- name: deploy
15-
if: branch = stable
17+
if: branch = stable AND type = push
1618

1719
before_install:
1820
- cd ..
@@ -24,6 +26,9 @@ before_install:
2426
# Update conda
2527
- conda update --yes conda
2628
- conda info -a
29+
# Set git info
30+
- git config --global user.name "Travis Deploy"
31+
- git config --global user.email "[email protected]"
2732

2833
jobs:
2934
include:
@@ -47,6 +52,21 @@ jobs:
4752
after_success:
4853
- codecov
4954
- bash ./deploy.sh
55+
- stage: documentation
56+
install:
57+
- cd RMG-Py
58+
- conda env create -q -f environment_linux.yml
59+
- source activate rmg_env
60+
# Install sphinx for building documentation
61+
- conda install -y sphinx
62+
- conda list
63+
# Modify setup.py
64+
- sed -i '/embedsignature/s/^#//g' setup.py
65+
- make
66+
- cd documentation
67+
- export COMMITMESSAGE="Automatic documentation rebuild"
68+
script:
69+
- make travis_setup clean html publish
5070
- stage: deploy
5171
install:
5272
# Setup conda build
@@ -55,7 +75,7 @@ jobs:
5575
- conda config --add channels rmg
5676
- conda config --set anaconda_upload yes
5777
script:
58-
- conda build --token $CONDA_TOKEN --user rmg RMG-Py
78+
- conda build --token $CONDA_TOKEN --user rmg RMG-Py/.conda
5979
- os: osx
6080
install:
6181
# Setup conda build
@@ -64,4 +84,4 @@ jobs:
6484
- conda config --add channels rmg
6585
- conda config --set anaconda_upload yes
6686
script:
67-
- conda build --token $CONDA_TOKEN --user rmg RMG-Py
87+
- conda build --token $CONDA_TOKEN --user rmg RMG-Py/.conda

Makefile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ else
3333
endif
3434
python setup.py build_ext solver --build-lib . --build-temp build --pyrex-c-in-temp
3535

36-
cantherm:
37-
python setup.py build_ext cantherm --build-lib . --build-temp build --pyrex-c-in-temp
36+
arkane:
37+
python setup.py build_ext arkane --build-lib . --build-temp build --pyrex-c-in-temp
3838

3939
check:
4040
@ python utilities.py check-dependencies
@@ -88,21 +88,21 @@ ifneq ($(OS),Windows_NT)
8888
mkdir -p testing/coverage
8989
rm -rf testing/coverage/*
9090
endif
91-
nosetests --nocapture --nologcapture --all-modules --verbose --with-coverage --cover-inclusive --cover-package=rmgpy --cover-erase --cover-html --cover-html-dir=testing/coverage --exe rmgpy
91+
nosetests --nocapture --nologcapture --all-modules --verbose --with-coverage --cover-inclusive --cover-package=rmgpy --cover-erase --cover-html --cover-html-dir=testing/coverage --exe rmgpy arkane
9292

9393
test test-unittests:
9494
ifneq ($(OS),Windows_NT)
9595
mkdir -p testing/coverage
9696
rm -rf testing/coverage/*
9797
endif
98-
nosetests --nocapture --nologcapture --all-modules -A 'not functional' --verbose --with-coverage --cover-inclusive --cover-package=rmgpy --cover-erase --cover-html --cover-html-dir=testing/coverage --exe rmgpy
98+
nosetests --nocapture --nologcapture --all-modules -A 'not functional' --verbose --with-coverage --cover-inclusive --cover-package=rmgpy --cover-erase --cover-html --cover-html-dir=testing/coverage --exe rmgpy arkane
9999

100100
test-functional:
101101
ifneq ($(OS),Windows_NT)
102102
mkdir -p testing/coverage
103103
rm -rf testing/coverage/*
104104
endif
105-
nosetests --nocapture --nologcapture --all-modules -A 'functional' --verbose --exe rmgpy
105+
nosetests --nocapture --nologcapture --all-modules -A 'functional' --verbose --exe rmgpy arkane
106106

107107
test-database:
108108
nosetests -v -d testing/databaseTest.py

cantherm.py renamed to arkane.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -29,35 +29,35 @@
2929
###############################################################################
3030

3131
"""
32-
This is the main executable script for CanTherm, a tool for computing chemical
32+
This is the main executable script for Arkane, a tool for computing chemical
3333
reaction rates and other properties used in detailed kinetics models using
34-
various methodologies and theories. To run CanTherm, use the command ::
34+
various methodologies and theories. To run Arkane, use the command ::
3535
36-
$ python cantherm.py FILE
36+
$ python arkane.py FILE
3737
38-
where ``FILE`` is the path to a CanTherm input file describing the job to
39-
execute. CanTherm will run the specified job, writing the output to
40-
``output.py`` and a log to both the console and to ``cantherm.log``, with both
38+
where ``FILE`` is the path to an Arkane input file describing the job to
39+
execute. Arkane will run the specified job, writing the output to
40+
``output.py`` and a log to both the console and to ``Arkane.log``, with both
4141
files appearing in the same directory as the input file. Some additional
4242
command-line arguments are available; run the command ::
4343
44-
$ python cantherm.py -h
44+
$ python arkane.py -h
4545
4646
for more information.
4747
"""
4848

4949
import os
5050
import logging
5151

52-
from rmgpy.cantherm.main import *
52+
from arkane.main import *
5353

54-
cantherm = CanTherm()
54+
arkane = Arkane()
5555

5656
# Parse and validate the command-line arguments
57-
cantherm.parseCommandLineArguments()
57+
arkane.parseCommandLineArguments()
5858

5959
# Execute the job
60-
cantherm.execute()
60+
arkane.execute()
6161

6262
try:
6363
import psutil
Lines changed: 5 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -28,21 +28,8 @@
2828
# #
2929
###############################################################################
3030

31-
import numpy
32-
import os.path
33-
import logging
34-
import rmgpy.constants as constants
35-
################################################################################
36-
37-
def checkConformerEnergy(Vlist,path):
38-
"""
39-
Check to see that the starting energy of the species in the potential energy scan calculation
40-
is not 0.5 kcal/mol (or more) higher than any other energies in the scan. If so, print and
41-
log a warning message.
42-
"""
43-
Vlist = numpy.array(Vlist, numpy.float64)
44-
Vdiff = (Vlist[0] - numpy.min(Vlist))*constants.E_h*constants.Na/1000
45-
if Vdiff >= 2: #we choose 2 kJ/mol to be the critical energy
46-
logging.warning('the species corresponding to ' + str(os.path.basename(path)) + ' is different in energy from the lowest energy conformer by ' + "%0.2f" % Vdiff + ' kJ/mol. This can cause significant errors in your computed rate constants. ')
47-
48-
31+
from arkane.main import Arkane
32+
from arkane.statmech import StatMechJob
33+
from arkane.thermo import ThermoJob
34+
from arkane.kinetics import KineticsJob
35+
from arkane.pdep import PressureDependenceJob

0 commit comments

Comments
 (0)