Skip to content

Commit

Permalink
address the comment per matt's request
Browse files Browse the repository at this point in the history
  • Loading branch information
fscottfoti committed Oct 8, 2015
1 parent 764d669 commit 3ed0390
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions urbansim/developer/sqftproforma.py
Original file line number Diff line number Diff line change
Expand Up @@ -596,13 +596,15 @@ def _lookup_parking_cfg(self, form, parking_config, df, only_built=True,

fars = np.repeat(cost_sqft_index_col, len(df.index), axis=1)

# zero out fars not allowed by zoning
# turn fars into nans which are not allowed by zoning
# (so we can fillna with one of the other zoning constraints)
fars[fars > df.min_max_fars.values + .01] = np.nan

# same thing for heights
heights = np.repeat(heights, len(df.index), axis=1)

# zero out heights not allowed by zoning
# turn heights into nans which are not allowed by zoning
# (so we can fillna with one of the other zoning constraints)
fars[heights > df.max_height.values + .01] = np.nan

# parcel sizes * possible fars
Expand Down

0 comments on commit 3ed0390

Please sign in to comment.