Skip to content

Commit

Permalink
disable rms writer in regression tests and input unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
JacksonBurns authored and ChrisBNEU committed Aug 16, 2023
1 parent a1892c8 commit dfd3d65
Show file tree
Hide file tree
Showing 11 changed files with 10 additions and 14 deletions.
1 change: 1 addition & 0 deletions test/regression/RMS_CSTR_liquid_oxidation/input.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,5 +62,6 @@
)

options(
generateRMSEachIter=False,
saveEdgeSpecies=True,
)
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,5 @@
options(
units='si',
saveEdgeSpecies=True,
generateRMSEachIter=False,
)
1 change: 1 addition & 0 deletions test/regression/RMS_liquidSurface_ch4o2cat/input.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,4 +85,5 @@
options(
units="si",
saveEdgeSpecies=True,
generateRMSEachIter=False,
)
1 change: 1 addition & 0 deletions test/regression/aromatics/input.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,6 @@
saveSimulationProfiles = False,
saveEdgeSpecies = True,
verboseComments = False,
generateRMSEachIter=False,
)

1 change: 1 addition & 0 deletions test/regression/liquid_oxidation/input.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,5 @@

options(
saveEdgeSpecies=True,
generateRMSEachIter=False,
)
1 change: 1 addition & 0 deletions test/regression/nitrogen/input.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
options(
units='si',
saveEdgeSpecies=True,
generateRMSEachIter=False,
)

generatedSpeciesConstraints(
Expand Down
1 change: 1 addition & 0 deletions test/regression/oxidation/input.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@
generatePlots=False,
saveEdgeSpecies=True,
saveSimulationProfiles=False,
generateRMSEachIter=False,
)

generatedSpeciesConstraints(
Expand Down
1 change: 1 addition & 0 deletions test/regression/sulfur/input.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@

options(
generateOutputHTML=False,
generateRMSEachIter=False,
generatePlots=False,
saveEdgeSpecies=True,
saveSimulationProfiles=False,
Expand Down
1 change: 1 addition & 0 deletions test/regression/superminimal/input.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
units='si',
saveRestartPeriod=None,
generateOutputHTML=True,
generateRMSEachIter=False,
generatePlots=True,
saveEdgeSpecies=True,
saveSimulationProfiles=True,
Expand Down
14 changes: 0 additions & 14 deletions test/rmgpy/rmg/inputTest.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,20 +92,6 @@ def test_importing_database_reaction_libraries_from_true_tuple(self):
assert isinstance(rmg.reaction_libraries[0], tuple)
assert rmg.reaction_libraries[0][1]


class TestRMSYAMLWriterDisable(unittest.TestCase):
"""
Default behavior of RMG is to enable so test ability to disable
"""

def test_disable_rms_yaml_writer(self):
"""
generateRMSEachIter = False in input should set the corresponding property in RMG instance
"""
global rmg
self.assertFalse(rmg.generate_rms_each_iter)


class TestInputMLEstimator:
"""
Contains unit tests rmgpy.rmg.input.mlEstimator
Expand Down
1 change: 1 addition & 0 deletions test/rmgpy/test_data/mainTest/input.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@
name='testSeed',
units='si',
generateSeedEachIteration=True,
generateRMSEachIter=False,
saveSeedToDatabase=True,
generateOutputHTML=False,
generatePlots=False,
Expand Down

0 comments on commit dfd3d65

Please sign in to comment.