Skip to content

Commit 15bf688

Browse files
some minor bug fixes 1) the geo_ids were filtered for testing purposes - that was fixed to include all chosen geos, 2) documentation files were updated, 3) small change made to the configuration file because the all_geos configuration element when selecting a subset of geos to synthesize was no longer needed
1 parent a3cb011 commit 15bf688

File tree

6 files changed

+11
-7
lines changed

6 files changed

+11
-7
lines changed

AUTHORS.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ Development Lead
1010
Contributors
1111
------------
1212

13-
None yet. Why not be the first?
13+
* Daehyun You

HISTORY.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
History
44
-------
55

6-
2.0 (2014-12-12)
6+
2.0.b1 (June 4, 2015)
77
++++++++++++++++++
88

9-
* First release on PyPI.
9+
* This is the first non-production release of PopGen 2.0

README.rst

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,9 @@ Synthetic Population Generator 2.0
1818
Features
1919
--------
2020

21-
* TODO
21+
For PopGen 2.1
22+
* Automatic data validator
23+
* Census data importer
24+
25+
For PopGen 2.2
26+
* Output Data Analyzer with charting and table generation capabilities

popgen/draw.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def __init__(self, scenario_config, geo_ids, geo_row_idx, geo_frequencies,
2929
def draw_population(self):
3030
np.random.seed(self.seed)
3131
# print "Drawing Households"
32-
for geo_id in self.geo_ids[:20]:
32+
for geo_id in self.geo_ids:
3333
# print "For geo:", geo_id
3434
geo_sample_weights = self.region_sample_weights.loc[:, geo_id]
3535
geo_cumulative_weights = (self._return_cumulative_probability(

popgen/reweighting.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ def run_reweighting(self, region_constraints, geo_constraints):
140140
region_constraints.loc[region_id]))
141141
# print "After region:", sample_weights[:, :4]
142142
# raw_input("region_done")
143-
for index, geo_id in enumerate(geo_ids[:20]):
143+
for index, geo_id in enumerate(geo_ids):
144144
# print ("Geo: %s " % geo_id)
145145
sample_weights[:, index] = (self._adjust_sample_weights(
146146
sample_weights[:, index],

tutorials/1_basic_popgen_setup/configuration.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ project:
5858
geos_to_synthesize:
5959
region:
6060
ids: [1]
61-
all_ids: True
6261
outputs:
6362
performance: [ipf, reweighting, drawing]
6463
weights:

0 commit comments

Comments
 (0)