Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to install/run Synthpop #27

Open
shanwenainimen opened this issue Oct 28, 2015 · 12 comments
Open

How to install/run Synthpop #27

shanwenainimen opened this issue Oct 28, 2015 · 12 comments

Comments

@shanwenainimen
Copy link

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
Copy link
Member

How familiar are you with using Python and Python libraries?

@shanwenainimen
Copy link
Author

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

@jiffyclub
Copy link
Member

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

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
Copy link
Author

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

@waddell
Copy link
Member

waddell commented Oct 28, 2015

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
Copy link
Member

waddell commented Oct 28, 2015

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

@shanwenainimen
Copy link
Author

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
Copy link
Member

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

@shanwenainimen
Copy link
Author

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
Copy link
Contributor

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

@shanwenainimen
Copy link
Author

Yes, it works. Many thanks

@shanwenainimen
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants