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
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Converting various datasets to adhere to CDC Zika format
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:
zika
is the CDC repozika-data
is the BuzzFeed repozika_data_to_cdc
is this repoThe 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
)
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.