Skip to content

Commit

Permalink
adding new fix for req
Browse files Browse the repository at this point in the history
  • Loading branch information
bobkatla committed Aug 23, 2024
1 parent d2ae3d5 commit 18d6047
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 19 deletions.
20 changes: 1 addition & 19 deletions PopSynthesis/Methods/IPU/scripts/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,26 +5,14 @@

from pathlib import Path
ipu_dir_path = Path(__file__).parent.parent.resolve()
data_path = Path(ipu_dir_path / "data" / "testing_new")
data_path = Path(ipu_dir_path / "data")
output_path = Path(ipu_dir_path / "output")


def test_run(hh_marg, p_marg, hh_sample, p_sample):
hh_marg, p_marg, hh_sample, p_sample, xwalk = zs.load_data(
hh_marg, p_marg, hh_sample, p_sample
)
# a = zs.synch_hhids(hh_marg, p_marg, xwalk)
# sample_df = hh_sample[hh_sample.sample_geog == xwalk[0][1]]
# category_df = cat.category_combinations(hh_marg.columns)
# hhs, hh_jd = cat.joint_distribution(
# hh_sample[hh_sample.sample_geog == xwalk[0][1]],
# cat.category_combinations(hh_marg.columns))

# category_names = list(category_df.index.names)
# print(sample_df.groupby(category_names).size())
# category_df["frequency"] = sample_df.groupby(category_names).size()
# print(hhs)
# print(hh_jd)

all_households, all_persons, all_stats = zs.synthesize_all_zones(
hh_marg, p_marg, hh_sample, p_sample, xwalk
Expand All @@ -45,12 +33,6 @@ def main():
p_marg = name_f("person_marginals_ipu")
hh_sample = name_f("hh_sample_ipu")
p_sample = name_f("pp_sample_ipu")

# TESTING SAMPLE
# hh_marg = name_f("hh_marginals")
# p_marg = name_f("person_marginals")
# hh_sample = name_f("household_sample")
# p_sample = name_f("person_sample")

start_time = time.time()
test_run(hh_marg, p_marg, hh_sample, p_sample)
Expand Down
Binary file modified requirements.txt
Binary file not shown.

0 comments on commit 18d6047

Please sign in to comment.