still in alpha, initial setup
10K+
(note! under initial development. very pre-alpha, etc)
Service to produce TwoRavens metadata. Description of the produced metadata: http://two-ravens-metadata-service.readthedocs.io
Prerequisites:
Open a Terminal, from the top of this repository, run:
# from within ~/raven-metadata-service
mkvirtualenv preprocess
pip install -r requirements/30_preprocess_web.txt
Open a Terminal, from the top of this repository, run:
# from within ~/raven-metadata-service
workon preprocess
cd preprocess_web/code
# -------------------------
# Preprocess a single file,
# Write output to screen
# -------------------------
fab run_preprocess:[input file name]
# Example:
fab run_preprocess:../../test_data/fearonLaitin.csv
# -------------------------
# Preprocess a single file,
# Write output to file
# -------------------------
fab run_preprocess:[input file name],[output file]
fab run_preprocess:../../test_data/fearonLaitin.csv,/tmp/fearonLaitin.json
This gives an overview of the code within raven-metadata-service/preprocess/code
preprocess_runner.pyHow it is used:
PreprocessRunner.load_from_csv_file(..file path..)PreprocessRunner.load_from_tabular_file(..file path..)column_info.py) which contains all of the output variables names
pandas.Series) through these utils:
type_guess_util.py)summary_stats_util.py)plot_values.py)Example of use:
preprocess.pycd preprocess/code
python -m unittest
workon preprocess
cd docs
make html
Content type
Image
Digest
Size
503.7 MB
Last updated
over 5 years ago
docker pull tworavens/raven-metadata-service