From 2fee6d1414313f38f2ba18e9ff8fb833320ffdf9 Mon Sep 17 00:00:00 2001 From: Eddie Janowicz Date: Tue, 13 Jun 2017 10:16:13 -0700 Subject: [PATCH] misc fixes --- variable_generators/generators.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/variable_generators/generators.py b/variable_generators/generators.py index fe1ae8e..c1661c3 100644 --- a/variable_generators/generators.py +++ b/variable_generators/generators.py @@ -1,5 +1,6 @@ from __future__ import print_function +import numpy as np import pandas as pd import orca @@ -169,7 +170,7 @@ def make_density_var(agent, geog): @orca.column(geog, var_name, cache=True, cache_scope='iteration') def func(): locations = orca.get_table(geog) - print ('Calculating density of {} for {}').format(agent, geog) + print('Calculating density of {} for {}'.format(agent, geog)) if geog != 'blocks': series = locations['total_' + agent] * 1.0 / ( locations['sum_acres'] + 1.0)