Cameron Hummels avatar Cameron Hummels committed 1164a74 Merge

Merging.

Comments (0)

Files changed (19)

run/Cooling/CoolingTest_Cloudy/CoolingTest_Cloudy__test_cooling.py

                        find_outputs=True)
     sim.get_time_series()
     tolerance = ytcfg.getint("yt", "answer_testing_tolerance")
-    for pf in sim:
-        for field in _fields:
-            yield FieldValuesTest(pf, field, decimals=tolerance)
+    pf = sim[-1]
+    for field in _fields:
+        yield FieldValuesTest(pf, field, decimals=tolerance)
 

run/Cooling/CoolingTest_JHW/CoolingTest_JHW__test_cooling.py

                        find_outputs=True)
     sim.get_time_series()
     tolerance = ytcfg.getint("yt", "answer_testing_tolerance")
-    for pf in sim:
-        for field in _fields:
-            yield FieldValuesTest(pf, field, decimals=tolerance)
+    pf = sim[-1]
+    for field in _fields:
+        yield FieldValuesTest(pf, field, decimals=tolerance)
 

run/Cooling/OneZoneFreefallTest/OneZoneFreefallTest__test_freefall.py

                        find_outputs=True)
     sim.get_time_series()
     tolerance = ytcfg.getint("yt", "answer_testing_tolerance")
-    for pf in sim:
-        for field in _fields:
-            yield FieldValuesTest(pf, field, decimals=tolerance)
+    pf = sim[-1]
+    for field in _fields:
+        yield FieldValuesTest(pf, field, decimals=tolerance)

run/GravitySolver/TestOrbit/TestOrbit__test_orbit.py

                        find_outputs=True)
     sim.get_time_series()
     tolerance = ytcfg.getint("yt", "answer_testing_tolerance")
-    for pf in sim:
-        for field in _fields:
-            yield AllFieldValuesTest(pf, field, decimals=tolerance)
+    pf = sim[-1]
+    for field in _fields:
+        yield AllFieldValuesTest(pf, field, decimals=tolerance)

run/Hydro/Hydro-1D/FreeExpansion/FreeExpansion__test_free_expansion.py

     sim = sim_dir_load(_pf_name, path=_dir_name, 
                        find_outputs=True)
     sim.get_time_series()
-    for pf in sim:
-        yield TestFreeExpansionDistance(pf)
+    pf = sim[-1]
+    yield TestFreeExpansionDistance(pf)

run/Hydro/Hydro-2D/FreeExpansionAMR/FreeExpansionAMR__test_free_expansion.py

     sim = sim_dir_load(_pf_name, path=_dir_name, 
                        find_outputs=True)
     sim.get_time_series()
-    for pf in sim:
-        yield TestFreeExpansionDistance(pf)
+    pf = sim[-1]
+    yield TestFreeExpansionDistance(pf)

run/Hydro/Hydro-2D/NohProblem2D/NohProblem2D__test_noh2d.py

     sim = sim_dir_load(_pf_name, path=_dir_name,
                        find_outputs=True)
     sim.get_time_series()
-    for pf in sim:
-        yield TestShockImage(pf)
-        yield TestRadialDensity(pf)
+    pf = sim[-1]
+    yield TestShockImage(pf)
+    yield TestRadialDensity(pf)

run/Hydro/Hydro-2D/NohProblem2DAMR/NohProblem2DAMR__test_noh2damr.py

     sim = sim_dir_load(_pf_name, path=_dir_name,
                        find_outputs=True)
     sim.get_time_series()
-    for pf in sim:
-        yield TestShockImage(pf)
-        yield TestRadialDensity(pf)
+    pf = sim[-1]
+    yield TestShockImage(pf)
+    yield TestRadialDensity(pf)

run/Hydro/Hydro-3D/NohProblem3D/NohProblem3D__test_noh3d.py

     sim = sim_dir_load(_pf_name, path=_dir_name,
                        find_outputs=True)
     sim.get_time_series()
-    for pf in sim:
-        yield TestShockImage(pf)
-        yield TestRadialDensity(pf)
+    pf = sim[-1]
+    yield TestShockImage(pf)
+    yield TestRadialDensity(pf)

run/Hydro/Hydro-3D/NohProblem3DAMR/NohProblem3DAMR__test_noh3damr.py

     sim = sim_dir_load(_pf_name, path=_dir_name,
                        find_outputs=True)
     sim.get_time_series()
-    for pf in sim:
-        yield TestShockImage(pf)
-        yield TestRadialDensity(pf)
+    pf = sim[-1]
+    yield TestShockImage(pf)
+    yield TestRadialDensity(pf)

run/Hydro/Hydro-3D/RotatingCylinder/RotatingCylinder__test_rotating_cylinder.py

     sim = sim_dir_load(_pf_name, path=_dir_name,
                        find_outputs=True)
     sim.get_time_series()
-    for pf in sim:
-        yield TestLVariation(pf)
+    pf = sim[-1]
+    yield TestLVariation(pf)

run/MHD/1D/BrioWu-MHD-1D/BrioWu-MHD-1D__test_briowu.py

                        find_outputs=True)
     sim.get_time_series()
     tolerance = ytcfg.getint("yt", "answer_testing_tolerance")
-    for pf in sim:
-        for field in _fields:
-            yield AllFieldValuesTest(pf, field, decimals=tolerance)
+    pf = sim[-1]
+    for field in _fields:
+        yield AllFieldValuesTest(pf, field, decimals=tolerance)

run/MHD/2D/MHD2DRotorTest/MHD2DRotorTest__test_rotor.py

     sim = sim_dir_load(_pf_name, path=_dir_name,
                        find_outputs=True)
     sim.get_time_series()
-    for pf in sim:
-        for field in _fields:
-            yield TestRotorImage(pf, field)
+    pf = sim[-1]
+    for field in _fields:
+        yield TestRotorImage(pf, field)

run/MHD/2D/SedovBlast-MHD-2D-Fryxell/SedovBlast-MHD-2D-Fryxell__test_fryxell.py

     sim = sim_dir_load(_pf_name, path=_dir_name,
                        find_outputs=True)
     sim.get_time_series()
-    for pf in sim:
-        for field in _fields:
-            yield TestFryxellImage(pf, field)
+    pf = sim[-1]
+    for field in _fields:
+        yield TestFryxellImage(pf, field)

run/MHD/2D/SedovBlast-MHD-2D-Gardiner/SedovBlast-MHD-2D-Gardiner__test_gardiner.py

     sim = sim_dir_load(_pf_name, path=_dir_name,
                        find_outputs=True)
     sim.get_time_series()
-    for pf in sim:
-        for field in _fields:
-            yield TestGardinerImage(pf, field)
+    pf = sim[-1]
+    for field in _fields:
+        yield TestGardinerImage(pf, field)

run/RadiationTransport/PhotonShadowing/PhotonShadowing__test_photonshadowing.py

     sim = sim_dir_load(_pf_name, path=_dir_name,
                        find_outputs=True)
     sim.get_time_series()
-    for pf in sim:
-        for field in _fields:
-            yield TestPhotonShadowing(pf, field)
+    pf = sim[-1]
+    for field in _fields:
+        yield TestPhotonShadowing(pf, field)

run/RadiationTransport/PhotonTest/PhotonTest__test_photontest.py

     sim = sim_dir_load(_pf_name, path=_dir_name,
                        find_outputs=True)
     sim.get_time_series()
-    for pf in sim:
-        for field in _fields:
-            yield TestPhotonTest(pf, field)
+    pf = sim[-1]
+    for field in _fields:
+        yield TestPhotonTest(pf, field)

run/RadiationTransport/PhotonTestAMR/PhotonTestAMR__test_amrphotontest.py

     sim = sim_dir_load(_pf_name, path=_dir_name,
                        find_outputs=True)
     sim.get_time_series()
-    for pf in sim:
-        for field in _fields:
-            yield TestAMRPhotonTest(pf, field)
+    pf = sim[-1]
+    for field in _fields:
+        yield TestAMRPhotonTest(pf, field)

run/test_runner.py

 
             outfile.write('Tests that failed:\n')
             for fail in self.failures: 
-                outfile.write(fail)
-                outfile.write('\n')
+                for li, line in enumerate(fail.split('\\n')):
+                    if li > 0: outfile.write('    ')
+                    outfile.write(line)
+                    outfile.write('\n')
             outfile.write('\n')
 
             outfile.write('Tests that errored:\n')
             for err in self.errors: 
-                outfile.write(err)
-                outfile.write('\n')
+                for li, line in enumerate(err.split('\\n')):
+                    if li > 0: outfile.write('    ')
+                    outfile.write(line)
+                    outfile.write('\n')
             outfile.write('\n')
 
 class EnzoTestCollection(object):
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.