Skip to content

Commit

Permalink
PEP8 formatting fixes for comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
jiffyclub committed Mar 26, 2014
1 parent 99eebd4 commit 838b61c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
6 changes: 3 additions & 3 deletions urbansim/server/urbansimd.py
Expand Up @@ -236,7 +236,7 @@ def pandas_statement(table, where, sort, orderdesc, groupby, metric,
if not sort and not orderdesc:
sort = ".sort_index(ascending=True)"
if limit and page:
#limit = ".iloc[%s*(%s-1):%s*%s]" % (limit,page,limit,page)
# limit = ".iloc[%s*(%s-1):%s*%s]" % (limit,page,limit,page)
limit = ".head(%s*%s).tail(%s)" % (limit, page, limit)
elif limit:
limit = ".head(%s)" % limit
Expand Down Expand Up @@ -315,10 +315,10 @@ def query():

if 'key_dictionary' in req:
key_dictionary = req['key_dictionary']
#not sure /configs is the proper place to save dicts
# not sure /configs is the proper place to save dicts
dictionary_file = open("configs/" + key_dictionary).read()
dictionary = json.loads(dictionary_file)
#attention: the dictionary has keys from 0 to 15, ids come from 0 to 16
# attention: the dictionary has keys from 0 to 15, ids come from 0 to 16
recs = [[dictionary[str(int(x))], float(recs.ix[x]) / 1000]
for x in recs.index]
else:
Expand Down
3 changes: 0 additions & 3 deletions urbansim/utils/misc.py
Expand Up @@ -139,9 +139,6 @@ def resultstocsv(fit, fnames, results, filename, hedonic=False, tolatex=True,
fit, fnames, results, filename, hedonic, tblname=tblname)
results = maketable(fnames, results)
f = open(os.path.join(output_dir(), filename), 'w')
#if hedonic: f.write('R-squared,%f\nAdj-R-squared,%f\n\n\n'%fit)
# else: f.write('null loglik,%f\nconverged loglik,%f\nloglik
# ratio,%f\n\n\n'%fit)
csvf = csv.writer(f, lineterminator='\n')
for row in results:
csvf.writerow(row)
Expand Down

0 comments on commit 838b61c

Please sign in to comment.