UDST / spandex

Spatial Analysis and Data Extraction

Home Page:http://nbviewer.ipython.org/github/synthicity/user_meeting_2014/blob/gh-pages/spandex/spandex_demo.ipynb

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Spandex/Synthesis container size when count not none

cvanoli opened this issue · comments

In spandex/targets/synthesis, when a count column is passed, the target value is matched by the sum of the count column instead of counting the number of rows. In the allocation process, the size of the containers (container_size array) is calculated by subtracting the corresponding values in the capacity column or the capacity expression to the number of rows in each geo_id_col element. However, the behavior the user expects when passing a count column is that the container size is also calculated by summing the values in the count column that belong to each geo_id_col element.