UDST / spandex

Spatial Analysis and Data Extraction
http://nbviewer.ipython.org/github/synthicity/user_meeting_2014/blob/gh-pages/spandex/spandex_demo.ipynb
BSD 3-Clause "New" or "Revised" License
22 stars 7 forks source link

Spandex/Synthesis container size when count not none #58

Open cvanoli opened 6 years ago

cvanoli commented 6 years ago

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.