UDST / synthpop

Synthetic populations from census data
BSD 3-Clause "New" or "Revised" License
100 stars 47 forks source link

How to install/run Synthpop #27

Open shanwenainimen opened 8 years ago

shanwenainimen commented 8 years ago

Hi all,

Could anyone please provide some guidance about how to install or run Synthpop? I have been recently assigned a task related with Synthpop and had a hard time doing this job. I would really appreciate it.

jiffyclub commented 8 years ago

How familiar are you with using Python and Python libraries?

shanwenainimen commented 8 years ago

I took a Python course during undergraduate and have the basic knowledge for Python and its libraries

jiffyclub commented 8 years ago

Okay, great. The only way to use SynthPop is by writing Python. :smile:

Step one is to install Python and all the dependencies. I recommend Anaconda. The required dependencies are:

Everything except cenus and us are included with Anaconda.

Step 2 is to download the source code from here on GitHub. Install SynthPop by running python setup.py install in the synthpop directory.

Then you should be able to start Python and import synthpop. For usage help I recommend looking at the demos.

shanwenainimen commented 8 years ago

Thanks a lot, I have installed Anaconda and I will follow your guidance. Thanks again!

waddell commented 8 years ago

If you need help with the logic behind it or possibly some assistance in applying it, you might try reaching out to Karthik Konduri who wrote the precursor to this version, called PopGen.

waddell commented 8 years ago

Or https://github.com/bhargavasana..

shanwenainimen commented 8 years ago

Thanks @jiffyclub and @waddell, I have successfully installed Census and US, but how can I install/run the synthpop via Jupyter Notebook. I try to run set up.py but it shows error below: image Thank you so much for your kind input.

jiffyclub commented 8 years ago

You'll need to install synthpop from the command line after downloading the source.

shanwenainimen commented 8 years ago

I really appreciate your help @jiffyclub and It works. when I run the census_api.py in deom, it shows error below: image I got the API key and should I just replace the os.environ("census") with key as shown below: image Thanks

fscottfoti commented 8 years ago

Yes that works. It seems like you've already done that - is it working?

shanwenainimen commented 8 years ago

Yes, it works. Many thanks

shanwenainimen commented 8 years ago

Hi all,

I have successfully run examples in Demo file thanks to your generous help. I have another question. How to test input_data in Demo file (I assume this is an example used in Popgen)? Because I have to finally set up Synthpop and UrbanSim for our MPO, should I make the format of our data exactly same as data in input_data file? Many thanks.