[yt-svn] commit/yt: 3 new changesets
commits-noreply at bitbucket.org
commits-noreply at bitbucket.org
Fri Sep 6 05:15:51 PDT 2013
3 new commits in yt:
https://bitbucket.org/yt_analysis/yt/commits/953711d985ff/
Changeset: 953711d985ff
Branch: yt
User: brittonsmith
Date: 2013-09-06 11:51:36
Summary: Adding a maxsplit of 1 to parsing simulation parameter file so as not
to freak out when encountering a line with more than one = sign.
Affected #: 1 file
diff -r 82c39f06779818dc31a267c38f7f0adbc079705b -r 953711d985ffa94457b3bc453cdd67fefa5ead3c yt/frontends/enzo/simulation_handling.py
--- a/yt/frontends/enzo/simulation_handling.py
+++ b/yt/frontends/enzo/simulation_handling.py
@@ -270,7 +270,7 @@
if '#' in line: line = line[0:line.find('#')]
if '//' in line: line = line[0:line.find('//')]
if len(line) < 2: continue
- param, vals = (i.strip() for i in line.split("="))
+ param, vals = (i.strip() for i in line.split("="), 1)
# First we try to decipher what type of value it is.
vals = vals.split()
# Special case approaching.
https://bitbucket.org/yt_analysis/yt/commits/e074682f9f46/
Changeset: e074682f9f46
Branch: yt
User: brittonsmith
Date: 2013-09-06 12:42:43
Summary: Doing it right this time.
Affected #: 1 file
diff -r 953711d985ffa94457b3bc453cdd67fefa5ead3c -r e074682f9f4666a3c2a5a09d3b58cf29e91099dc yt/frontends/enzo/simulation_handling.py
--- a/yt/frontends/enzo/simulation_handling.py
+++ b/yt/frontends/enzo/simulation_handling.py
@@ -270,7 +270,7 @@
if '#' in line: line = line[0:line.find('#')]
if '//' in line: line = line[0:line.find('//')]
if len(line) < 2: continue
- param, vals = (i.strip() for i in line.split("="), 1)
+ param, vals = (i.strip() for i in line.split("=", 1))
# First we try to decipher what type of value it is.
vals = vals.split()
# Special case approaching.
https://bitbucket.org/yt_analysis/yt/commits/b3b28b859b0e/
Changeset: b3b28b859b0e
Branch: yt
User: MatthewTurk
Date: 2013-09-06 14:15:47
Summary: Merged in brittonsmith/yt (pull request #589)
Adding a maxsplit of 1 to parsing simulation parameter file (fixes Issue #651)
Affected #: 1 file
diff -r c5d2839b5b7af432baf7c2e8db8bf75350314341 -r b3b28b859b0e9d6c7699fb70768dbe08bd8a4d5a yt/frontends/enzo/simulation_handling.py
--- a/yt/frontends/enzo/simulation_handling.py
+++ b/yt/frontends/enzo/simulation_handling.py
@@ -270,7 +270,7 @@
if '#' in line: line = line[0:line.find('#')]
if '//' in line: line = line[0:line.find('//')]
if len(line) < 2: continue
- param, vals = (i.strip() for i in line.split("="))
+ param, vals = (i.strip() for i in line.split("=", 1))
# First we try to decipher what type of value it is.
vals = vals.split()
# Special case approaching.
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