-
Notifications
You must be signed in to change notification settings - Fork 230
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Python3 Script check #1840
Python3 Script check #1840
Conversation
travis-ci/push failed on the following:
This does not seem to be related to any of my code changes, and I'm not sure what's causing this |
I found the related issue: #1682 It seems like we never figured out the root cause, but it went away on its own in each case. |
0e6ad98
to
64da055
Compare
Codecov Report
@@ Coverage Diff @@
## master #1840 +/- ##
======================================
Coverage 44.2% 44.2%
======================================
Files 83 83
Lines 21533 21533
Branches 5645 5645
======================================
Hits 9519 9519
+ Misses 10961 10947 -14
- Partials 1053 1067 +14
Continue to review full report at Codecov.
|
I force-pushed this again after rebasing to official/master and got the same error as before with travis-ci/push |
Reduction example folder is deleted because /rmgpy/reduction/main.py no longer exists. convertFAME.py is also deleted because it is no longer used
All the examples related to scripts are moved under a new folder example/scripts. Each bash scripts are changed appropriately to have correct relative paths for each script file. Also, for the examples file that were throwing error, I made somes changes to make them work: 1. generateReactions - This example was origianlly throwing error because surface chemistry was included in the kinetic_family in the input file. The kinetic family is changed to 'default', so it no longer throws error 2. simulate/withoutSensitivity - This example had minor error with default temperature range in chem.inp file. The temperature range in chem.inp file is changed appropriately. 3. thermoEstimator - input.py (run.sh) example had QM on in input file when it was not supposed to. The QM thermoEstimator has its own example (input_QM.py). The quantumMechanics portion in the input.py is deleted.
An example for scripts/generateChemkimHTML.py is added
An example for scripts/mergeModels.py is added. The run.sh file contains two examples: merging 2 models and merging 3 models.
An example for scripts/generateFluxDiagram.py is added
An exmaple for scripts/standardizeModelSpeceisNames.py is added
A few more lines are added in the description
64da055
to
71f10d7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Motivation or Problem
I tested all externally-used scripts in python 3 version RMG. This is related to the issue #1726.
thermoEstimator.py
inexamples/scripts/thermoEstimator/run_QM.sh
because I don't have the mopac license. Since it only throws an error that I don't have the mopac license, I don't expectthermoEstimator.py
to have any error.The internally-used scripts like
generateTree.py
,machineWriteDatabase.py
, andrmg2to3.py
are not checked in this test.Description of Changes
isotopes.py
does not have an example because running this example takes too much time. This script seems to run fine when I checked it.convertFAME.py
is deleted because it is no longer used.reduction
example folder is deleted because it uses the script that is no longer available.examples/scripts
.Testing
I ran all the script example bash scripts and everything ran successfully.
Reviewer Tips
You can run bash scripts in
examples/scripts
to check that everything works fine