File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -1628,6 +1628,8 @@ def read_thermo_input_file(path, rmg0):
16281628 rmg .reaction_model = CoreEdgeReactionModel ()
16291629 rmg .initial_species = []
16301630 rmg .reaction_systems = []
1631+ if rmg .output_directory is None :
1632+ rmg .output_directory = os .path .dirname (full_path )
16311633 species_dict = {}
16321634
16331635 global_context = {'__builtins__' : None }
@@ -1750,9 +1752,12 @@ def format_temperature(system):
17501752 for term in system .termination :
17511753 if isinstance (term , TerminationTime ):
17521754 f .write (' terminationTime = ({0:g},"{1!s}"),\n ' .format (term .time .value , term .time .units ))
1753-
1754- else :
1755+ elif isinstance (term , TerminationRateRatio ):
1756+ f .write (' terminationRateRatio = {0:g},\n ' .format (term .ratio ))
1757+ elif isinstance (term , TerminationConversion ):
17551758 conversions += ' "{0:s}": {1:g},\n ' .format (term .species .label , term .conversion )
1759+ else :
1760+ raise NotImplementedError ('Termination criteria of type {0} not supported' .format (type (term )))
17561761 if conversions :
17571762 f .write (' terminationConversion = {\n ' )
17581763 f .write (conversions )
You can’t perform that action at this time.
0 commit comments