A plugin to generate test data
366
.. image:: https://badge.fury.io/py/test_data_generator.svg :target: https://badge.fury.io/py/test_data_generator
.. image:: https://travis-ci.org/FNNDSC/test_data_generator.svg?branch=master :target: https://travis-ci.org/FNNDSC/test_data_generator
.. image:: https://img.shields.io/badge/python-3.5%2B-blue.svg :target: https://badge.fury.io/py/pl-test_data_generator
.. contents:: Table of Contents
Outputs test data for classification module (CNI)
.. code::
python test_data_generator.py \
[-v <level>] [--verbosity <level>] \
[--version] \
[--man] \
[--meta] \
<inputDir>
<outputDir>
test_data_generator.py is a ChRIS-based application that...
.. code::
[-v <level>] [--verbosity <level>]
Verbosity level for app. Not used currently.
[--version]
If specified, print version number.
[--man]
If specified, print (this) man page.
[--meta]
If specified, print plugin meta data.
This plugin can be run in two modes: natively as a python package or as a containerized docker image.
Using PyPI
To run from PyPI, simply do a
.. code:: bash
pip install test_data_generator
and run with
.. code:: bash
test_data_generator.py --man /tmp /tmp
to get inline help. The app should also understand being called with only two positional arguments
.. code:: bash
test_data_generator.py /some/input/directory /destination/directory
Using ``docker run``
To run using docker, be sure to assign an "input" directory to /incoming and an output directory to /outgoing. Make sure that the $(pwd)/out directory is world writable!
Now, prefix all calls with
.. code:: bash
docker run --rm -v $(pwd)/out:/outgoing \
fnndsc/pl-test_data_generator test_data_generator.py \
Thus, getting inline help is:
.. code:: bash
mkdir in out && chmod 777 out
docker run --rm -v $(pwd)/in:/incoming -v $(pwd)/out:/outgoing \
fnndsc/pl-test_data_generator test_data_generator.py \
--man \
/incoming /outgoing
Content type
Image
Digest
Size
148.9 MB
Last updated
over 6 years ago
docker pull sandip117/pl-test_data_generator