Skip to content
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

Fix indentation bug and variable name in importChemkinLibrary.py #362

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions scripts/importChemkinLibrary.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
from rmgpy.data.thermo import ThermoLibrary
from rmgpy.data.kinetics import KineticsLibrary
from rmgpy.data.base import Entry
from rmgpy.chemkin import loadChemkinFile, getSpeciesIdentifier
from rmgpy.chemkin import load_chemkin_file, get_species_identifier
from rmgpy import settings

if __name__ == '__main__':
Expand All @@ -31,11 +31,11 @@
dictionaryPath = args.dictionaryPath[0]
name = args.name[0]

speciesList, reactionList = loadChemkinFile(chemkinPath, dictionaryPath)
speciesList, reactionList = load_chemkin_file(chemkinPath, dictionaryPath)

# Make full species identifier the species labels
for species in speciesList:
species.label = getSpeciesIdentifier(species)
species.label = get_species_identifier(species)
species.index = -1
# load thermo library entries
thermoLibrary = ThermoLibrary(name=name)
Expand Down Expand Up @@ -64,7 +64,7 @@
)
try:
entry.longDesc = 'Originally from reaction library: ' + reaction.library + "\n" + reaction.kinetics.comment
except AttributeError:
except AttributeError:
entry.longDesc = reaction.kinetics.comment
kineticsLibrary.entries[i+1] = entry

Expand Down