Skip to content

Commit 1846c6c

Browse files
committed
RMG-Py v2.2.0 release
2 parents 73f223d + 1e79b51 commit 1846c6c

File tree

191 files changed

+14409
-2407
lines changed

Some content is hidden

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

191 files changed

+14409
-2407
lines changed

.github/ISSUE_TEMPLATE/bug-report.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
5+
---
6+
7+
<!--Thanks for creating this bug report! Please try to provide as much information as possible so we can recreate the bug. This template is provided as a guide, which you can adjust based on your issue. Also, try searching GitHub issues to see if someone has previously posted a similar bug. -->
8+
9+
### Bug Description
10+
A clear and concise description of what the bug is.
11+
12+
### How To Reproduce
13+
Steps to reproduce the behavior.
14+
15+
### Expected Behavior
16+
A clear and concise description of what you expected to happen.
17+
18+
### Installation Information
19+
Describe your installation method and system information.
20+
- OS (include version if known): (e.g. Windows 10, Ubuntu 18, macOS 10.13, etc.)
21+
- Installation method: (e.g. installation from binary or source, with or without anaconda)
22+
- RMG version information:
23+
<!--
24+
For binary installation, get version number using `conda list -f rmg`
25+
For installation from source, get git commit using `git describe --tags`
26+
-->
27+
- RMG-Py:
28+
- RMG-database:
29+
30+
### Additional Context
31+
Add any other context about the problem here.

.github/ISSUE_TEMPLATE/feature.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
name: Feature suggestion
3+
about: Suggest an idea for RMG
4+
5+
---
6+
7+
<!-- Thanks for contributing a feature suggestion! Please try to provide as much detail as possible. This template is provided as a guide, which you can modify as needed. Also, try searching GitHub issues to see if someone has previously suggested a similar feature. -->
8+
9+
### Motivation or Problem
10+
A clear and concise description of what the problem is.
11+
12+
### Desired Solution
13+
A clear and concise description of what you want to happen.
14+
15+
### Potential Alternatives
16+
A clear and concise description of any alternative solutions or features you've considered.
17+
18+
### Additional Context
19+
Add any other context or screenshots about the feature request here.

.github/ISSUE_TEMPLATE/question.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
---
2+
name: Question
3+
about: Ask a question about RMG
4+
5+
---
6+
7+
<!-- Thanks for your interest in RMG! Please first check the online documentation at reactionmechanismgenerator.github.io/RMG-Py to see if it answers your question. Also, try searching GitHub issues to see if someone has asked your question before. This template is provided as a guide, which you can adjust based on your question. -->
8+
9+
### Topic
10+
General area which your question is related to.
11+
- [ ] Installation of RMG
12+
- [ ] Running an RMG job
13+
- [ ] Using RMG API
14+
- [ ] CanTherm
15+
- [ ] Dependencies
16+
- [ ] An error message <!-- consider writing a bug report instead -->
17+
18+
### Context
19+
A clear and concise description what you're trying to do.
20+
21+
### Question
22+
Write your question here.
23+
24+
### Installation Information
25+
Describe your installation method and system information if applicable.
26+
- OS (include version if known): (e.g. Windows 10, Ubuntu 18, macOS 10.13, etc.)
27+
- Installation method: (e.g. installation from binary or source, with or without anaconda)
28+
- RMG version information:
29+
<!--
30+
For binary installation, get version number using `conda list -f rmg`
31+
For installation from source, get git commit using `git describe --tags`
32+
-->
33+
- RMG-Py:
34+
- RMG-database:

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<!--
2+
Thanks for contributing a pull request! Please try to provide as much detail as possible to help the reviewer understand your work.
3+
You can also add the appropriate labels to describe the topic of the pull request and the type of changes you're making.
4+
-->
5+
6+
### Motivation or Problem
7+
A clear and concise description of what what you're trying to fix or improve. Please reference any issues that this addresses.
8+
9+
### Description of Changes
10+
A clear and concise description of what what you've changed or added.
11+
12+
### Testing
13+
A clear and concise description of testing that you've done or plan to do.
14+
15+
### Reviewer Tips
16+
Suggestions for verifying that this PR works or other notes for the reviewer.
17+
18+
<!--
19+
Checklist before submission:
20+
- Have you added appropriate unit tests?
21+
- Have you checked that all unit tests pass?
22+
- Is your code commented and understandable?
23+
- Have you updated related documentation?
24+
- Are the commits logically organized and informative?
25+
- Is your branch up to date with master?
26+
-->

.travis.yml

Lines changed: 50 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,67 @@
1-
language: python
1+
language: c
22
sudo: false
3-
python:
4-
- "2.7"
3+
54
env:
65
global:
76
- secure: "L2ja+ZnV83w4qG3E8FwTjm0D6IWNOnj5wuFOjYTwbzQP4OAgLAWBzCMtxzWy5sMxFLtRgkswBH1d5f5kg8Ab7GIyAMFgQwe8UFqMJ+N05QNszE1mJkAvJtv2XN7669XXQhTt5EXfHrCcGZaODVnI2CEA8GB5DxiHO2Lcqf/xvgE="
8-
- secure: "Fa/qcHKKkTzgNanhgz+XWXg5K+uae5Ukxd0hfzYaiOI4+ldFbyMrYbPpxxoYVXw1SSO0psSupLfPfXzHwyJpFOyc46P+fo+R3YgNTJwr2VfdvSC0bp9K01nlRJ/z62IpMwmDwR2UH5xnfTeB9nhtzviFNKZoDZ/GR7F1Wqd/nnU="
97
- secure: "dkhvrkbNEHv55q3NU+lNJ0SqaNG0/vPMsG3X2eQvYjFsq/e8EliILtEtjrugSgeFohxqms0F+sSyDpw46mtn+jukYejdywLVL7w8o9pxlkHv8uEqYhNiwCD8RjNyRPQAS9jL+sAJiqdqUWR6AzjwaLproCe6rFzzGe7Io5oDLMg="
108
- secure: "cfosGf5hvUhIlPoGJu0d/HFddrMwIFU7FfLwd8yRrMGkYv0ePOwAW9kmhFSxUYvuXkxzgD75cIICMFY2fSm6VXBXXzfPQD7vwzoApXf7a8vi0C64XhinXhdEyUYb5/v8fswa0zheUENYhUS1tOqDXT/h8EPNZT5wKizaA3O2Wa8="
119
- secure: "QXuqKYuwCocqsTMePBc5OugBbQC4/t+335TYLdkletiateP/rF/eDsVRG792/BVq5gKRZgz3NH9ipTNm5pZoCbAEPt9+eDpfts8WeAbxmjdcEjfBxxwZ69wUTPAVrezTGn2k7W2UBdFrWeUNKPAVCKIkoviXqOHFitqJEC+c6JY="
1210
- secure: "jIyBEzR10l5SWvY5ouEYzA8YzPHIZNMXMBdcXwuwte8NCU8GBYUqhHA1L67nTaBdLhWbrZ2NireVKPQWJp3ctcI0IB6xZzaYlVpgN/udGPO+1MZd9Xhp9TWuJWrGZ9EoWGB9L5H+O7RYwcDMVH5CUrCIBdsSJuyE8aDpky1/IVE="
1311

12+
stages:
13+
- test
14+
- name: deploy
15+
if: branch = stable
16+
1417
before_install:
1518
- cd ..
1619
# Install miniconda
17-
- wget http://repo.continuum.io/miniconda/Miniconda2-latest-Linux-x86_64.sh -O miniconda.sh
20+
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then wget http://repo.continuum.io/miniconda/Miniconda2-latest-Linux-x86_64.sh -O miniconda.sh; fi
21+
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then wget http://repo.continuum.io/miniconda/Miniconda2-latest-MacOSX-x86_64.sh -O miniconda.sh; fi
1822
- bash miniconda.sh -b -p $HOME/miniconda
1923
- export PATH=$HOME/miniconda/bin:$PATH
24+
# Update conda
2025
- conda update --yes conda
2126
- conda info -a
22-
# Clone RMG-database
23-
- git clone https://github.com/ReactionMechanismGenerator/RMG-database.git
24-
- cd RMG-Py
25-
26-
install:
27-
- conda env create -q -f environment_linux.yml
28-
- source activate rmg_env
29-
- conda install -y -c conda-forge codecov
30-
- conda list
31-
- yes 'Yes' | $HOME/miniconda/envs/rmg_env/bin/mopac $MOPACKEY > /dev/null
32-
- make
33-
34-
script:
35-
- make test-unittests
36-
- make test-functional
37-
- make test-database
3827

39-
after_success:
40-
- codecov
41-
- bash ./deploy.sh
28+
jobs:
29+
include:
30+
- stage: test
31+
install:
32+
# Clone RMG-database
33+
- git clone https://github.com/ReactionMechanismGenerator/RMG-database.git
34+
- cd RMG-Py
35+
- conda env create -q -f environment_linux.yml
36+
- source activate rmg_env
37+
# Install codecov for coverage report
38+
- conda install -y -c conda-forge codecov
39+
- conda list
40+
# Setup MOPAC license key
41+
- yes 'Yes' | $HOME/miniconda/envs/rmg_env/bin/mopac $MOPACKEY > /dev/null
42+
- make
43+
script:
44+
- make test-unittests
45+
- make test-functional
46+
- make test-database
47+
after_success:
48+
- codecov
49+
- bash ./deploy.sh
50+
- stage: deploy
51+
install:
52+
# Setup conda build
53+
- conda install -y conda-build
54+
- conda install -y anaconda-client
55+
- conda config --add channels rmg
56+
- conda config --set anaconda_upload yes
57+
script:
58+
- conda build --token $CONDA_TOKEN --user rmg RMG-Py
59+
- os: osx
60+
install:
61+
# Setup conda build
62+
- conda install -y conda-build
63+
- conda install -y anaconda-client
64+
- conda config --add channels rmg
65+
- conda config --set anaconda_upload yes
66+
script:
67+
- conda build --token $CONDA_TOKEN --user rmg RMG-Py

Makefile

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
DASPK=$(shell python -c 'import pydas.daspk; print pydas.daspk.__file__')
88
DASSL=$(shell python -c 'import pydas.dassl; print pydas.dassl.__file__')
99

10-
.PHONY : all minimal main solver check cantherm clean decython documentation mopac_travis
10+
.PHONY : all minimal main solver check cantherm clean install decython documentation mopac_travis
1111

1212
all: main solver check
1313

@@ -63,6 +63,21 @@ endif
6363
@ python utilities.py clean-solver
6464
@ echo "Cleanup completed."
6565

66+
install:
67+
@ echo "Checking you have PyDQED..."
68+
@ python -c 'import pydqed; print pydqed.__file__'
69+
ifneq ($(DASPK),)
70+
@ echo "DASPK solver found. Compiling with DASPK and sensitivity analysis capability..."
71+
@ (echo DEF DASPK = 1) > rmgpy/solver/settings.pxi
72+
else ifneq ($(DASSL),)
73+
@ echo "DASSL solver found. Compiling with DASSL. Sensitivity analysis capabilities are off..."
74+
@ (echo DEF DASPK = 0) > rmgpy/solver/settings.pxi
75+
else
76+
@ echo 'No PyDAS solvers found. Please check if you have the latest version of PyDAS.'
77+
@ python -c 'import pydas.dassl'
78+
endif
79+
python setup.py install
80+
6681
decython:
6782
# de-cythonize all but the 'minimal'. Helpful for debugging in "pure python" mode.
6883
find . -name *.so ! \( -name _statmech.so -o -name quantity.so -o -regex '.*rmgpy/solver/.*' \) -exec rm -f '{}' \;
@@ -75,20 +90,13 @@ ifneq ($(OS),Windows_NT)
7590
endif
7691
nosetests --nocapture --nologcapture --all-modules --verbose --with-coverage --cover-inclusive --cover-package=rmgpy --cover-erase --cover-html --cover-html-dir=testing/coverage --exe rmgpy
7792

78-
test-unittests:
93+
test test-unittests:
7994
ifneq ($(OS),Windows_NT)
8095
mkdir -p testing/coverage
8196
rm -rf testing/coverage/*
8297
endif
8398
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
8499

85-
test test-unittests-non-auth:
86-
ifneq ($(OS),Windows_NT)
87-
mkdir -p testing/coverage
88-
rm -rf testing/coverage/*
89-
endif
90-
nosetests --nocapture --nologcapture --all-modules -A 'not functional and not auth' --verbose --with-coverage --cover-inclusive --cover-package=rmgpy --cover-erase --cover-html --cover-html-dir=testing/coverage --exe rmgpy
91-
92100
test-functional:
93101
ifneq ($(OS),Windows_NT)
94102
mkdir -p testing/coverage

bld.bat

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
1-
:: Compile RMG
2-
mingw32-make -j%CPU_COUNT%
3-
41
:: Install RMG
5-
%PYTHON% setup.py install
2+
mingw32-make install
63

74
:: lazy "install" of everything in our 'external' folder.
85
:: most of which should probably be elsewhere

build.sh

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
1-
# Compile RMG
2-
make -j${CPU_COUNT}
3-
41
# Install RMG
5-
$PYTHON setup.py install
2+
make install
63

74
# lazy "install" of everything in our 'external' folder.
85
# most of which should probably be elsewhere

cantherm.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@
4747
"""
4848

4949
import os
50-
import os.path
5150
import logging
5251

5352
from rmgpy.cantherm.main import *
439 KB
Binary file not shown.

0 commit comments

Comments
 (0)