[Yt-svn] commit/yt: brittonsmith: Fixed bug where renaming EnzoParameterFile to enzo_parameter_file wasn't carried

Bitbucket commits-noreply at bitbucket.org
Thu Nov 3 07:07:11 PDT 2011


1 new commit in yt:


https://bitbucket.org/yt_analysis/yt/changeset/2c61fda6d0b2/
changeset:   2c61fda6d0b2
branch:      yt
user:        brittonsmith
date:        2011-11-03 15:04:39
summary:     Fixed bug where renaming EnzoParameterFile to enzo_parameter_file wasn't carried
over from EnzoSimulation class to LightCone.
affected #:  1 file

diff -r 0b853a9d693b36d2ea7bb8047e2eeeb37ced41f0 -r 2c61fda6d0b2c8fb6d7180ac013792cc11a16aff yt/analysis_modules/light_cone/light_cone.py
--- a/yt/analysis_modules/light_cone/light_cone.py
+++ b/yt/analysis_modules/light_cone/light_cone.py
@@ -42,7 +42,7 @@
 from .light_cone_projection import _light_cone_projection
 
 class LightCone(EnzoSimulation):
-    def __init__(self, EnzoParameterFile, initial_redshift=1.0, 
+    def __init__(self, enzo_parameter_file, initial_redshift=1.0, 
                  final_redshift=0.0, observer_redshift=0.0,
                  field_of_view_in_arcminutes=600.0, image_resolution_in_arcseconds=60.0, 
                  use_minimum_datasets=True, deltaz_min=0.0, minimum_coherent_box_fraction=0.0,
@@ -100,7 +100,7 @@
         self.recycleRandomSeed = 0
 
         # Initialize EnzoSimulation machinery for getting dataset list.
-        EnzoSimulation.__init__(self, EnzoParameterFile, initial_redshift=self.initial_redshift,
+        EnzoSimulation.__init__(self, enzo_parameter_file, initial_redshift=self.initial_redshift,
                                 final_redshift=self.final_redshift, links=True,
                                 enzo_parameters={'CosmologyComovingBoxSize':float}, **kwargs)
 
@@ -513,7 +513,7 @@
         else:
             f.write("Original Solution\n")
             f.write("OriginalRandomSeed = %s\n" % self.originalRandomSeed)
-        f.write("EnzoParameterFile = %s\n" % self.EnzoParameterFile)
+        f.write("enzo_parameter_file = %s\n" % self.enzo_parameter_file)
         f.write("\n")
         for q, output in enumerate(self.light_cone_solution):
             f.write("Proj %04d, %s, z = %f, depth/box = %f, width/box = %f, axis = %d, center = %f, %f, %f\n" %

Repository URL: https://bitbucket.org/yt_analysis/yt/

--

This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.



More information about the yt-svn mailing list