[yt-svn] commit/yt: brittonsmith: Allowing EnzoSimulation parameter file parser to catch scientific

Bitbucket commits-noreply at bitbucket.org
Tue Jul 24 16:17:24 PDT 2012


1 new commit in yt:


https://bitbucket.org/yt_analysis/yt/changeset/01ebfe551212/
changeset:   01ebfe551212
branch:      yt
user:        brittonsmith
date:        2012-07-25 01:17:13
summary:     Allowing EnzoSimulation parameter file parser to catch scientific
notation without + or -.
affected #:  1 file

diff -r 0d36c2744bb552cbf798194e083ba243f00da021 -r 01ebfe5512122b5181ec1058a380bd2fa42754b4 yt/frontends/enzo/simulation_handling.py
--- a/yt/frontends/enzo/simulation_handling.py
+++ b/yt/frontends/enzo/simulation_handling.py
@@ -279,7 +279,7 @@
                 except ValueError:
                     pcast = str
                 else:
-                    if any("." in v or "e+" in v or "e-" in v for v in vals):
+                    if any("." in v or "e" in v for v in vals):
                         pcast = float
                     elif v == "inf":
                         pcast = str

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