[yt-svn] commit/yt: jzuhone: Set these to zero to avoid problems with newest versions of SIMX. Should not change behavior at all for old versions.

commits-noreply at bitbucket.org commits-noreply at bitbucket.org
Mon Oct 19 11:09:33 PDT 2015


1 new commit in yt:

https://bitbucket.org/yt_analysis/yt/commits/f82ca33cd273/
Changeset:   f82ca33cd273
Branch:      yt
User:        jzuhone
Date:        2015-10-12 23:22:27+00:00
Summary:     Set these to zero to avoid problems with newest versions of SIMX. Should not change behavior at all for old versions.
Affected #:  1 file

diff -r ca754f897f2f44a4c2a9415b3aed977a0d1a4df0 -r f82ca33cd2733c7efdd00af346e032fbedabe4b3 yt/analysis_modules/photon_simulator/photon_simulator.py
--- a/yt/analysis_modules/photon_simulator/photon_simulator.py
+++ b/yt/analysis_modules/photon_simulator/photon_simulator.py
@@ -1161,8 +1161,8 @@
         tbhdu.writeto(phfile, clobber=clobber)
 
         col1 = pyfits.Column(name='SRC_ID', format='J', array=np.array([1]).astype("int32"))
-        col2 = pyfits.Column(name='RA', format='D', array=np.array([float(self.parameters["sky_center"][0])]))
-        col3 = pyfits.Column(name='DEC', format='D', array=np.array([float(self.parameters["sky_center"][1])]))
+        col2 = pyfits.Column(name='RA', format='D', array=np.array([0.0]))
+        col3 = pyfits.Column(name='DEC', format='D', array=np.array([0.0]))
         col4 = pyfits.Column(name='E_MIN', format='D', array=np.array([float(emin)]))
         col5 = pyfits.Column(name='E_MAX', format='D', array=np.array([float(emax)]))
         col6 = pyfits.Column(name='FLUX', format='D', array=np.array([flux.value]))

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