ndssl/zika_data_to_cdc

Name: zika_data_to_cdc

Owner: Network Dynamics and Simulation Science Laboratory

Description: Converting various datasets to adhere to CDC Zika format

Created: 2016-02-26 21:08:34.0

Updated: 2016-02-29 01:19:41.0

Pushed: 2016-03-03 05:59:02.0

Homepage: null

Size: 17

Language: Python

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Zika data to CDC format

Converting various datasets to adhere to CDC Zika format

Setup

This repository assumes that data from other repositories are sibbling directores to this repository

For example:

_folder_path/

 zika
 zika-data
 zika_data_to_cdc

Where:

Running Scripts

The scripts found in src/* will assume they are run from root of the repository (i.e., you will type something like python src/buzzfeed/clean_parsed_colombia.py)

Data sources
Technical Info

The scripts need to be run from this repository's root location.

The scripts and modules located in src/ are separated into parts for simplicity and modularity. In doing so, most of the scripts will have the following bits of code in the import statement

rt os
rt sys

path.append(os.getcwd())
rt src.helper as helper

This is why running the code form this diretory is so important. it will use the getwcd() to append to the path, so it knows how to find the other modules.

Yes, it's a bit hacky, but this prevents having this repo setup as a python module, and users do not have to edit their own PATH or PYTHONPATH variable.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.