[Yt-svn] yt-commit r1244 - trunk/yt/extensions/lightcone
britton at wrangler.dreamhost.com
britton at wrangler.dreamhost.com
Tue Mar 31 13:12:18 PDT 2009
Author: britton
Date: Tue Mar 31 13:12:18 2009
New Revision: 1244
URL: http://yt.spacepope.org/changeset/1244
Log:
Seed file reader ignores lines that begin with #.
Modified:
trunk/yt/extensions/lightcone/UniqueSolution.py
Modified: trunk/yt/extensions/lightcone/UniqueSolution.py
==============================================================================
--- trunk/yt/extensions/lightcone/UniqueSolution.py (original)
+++ trunk/yt/extensions/lightcone/UniqueSolution.py Tue Mar 31 13:12:18 2009
@@ -193,12 +193,13 @@
lines = file(filename)
for line in lines:
- line = line.strip()
- onLine = line.split(',')
- if (len(onLine) == 1):
- seedList.append({'master':onLine[0], 'recycle':None})
- else:
- seedList.append({'master':onLine[0], 'recycle':onLine[1]})
+ if line[0] != '#':
+ line = line.strip()
+ onLine = line.split(',')
+ if (len(onLine) == 1):
+ seedList.append({'master':onLine[0], 'recycle':None})
+ else:
+ seedList.append({'master':onLine[0], 'recycle':onLine[1]})
return seedList
More information about the yt-svn
mailing list