Skip to content

Latest commit

 

History

History
43 lines (38 loc) · 1.97 KB

File metadata and controls

43 lines (38 loc) · 1.97 KB

to-json-sd

  • accepts: sdc.api.SampleData
  • default extension: .json

Saves the sample data in JSON format.

usage: to-json-sd [-h] [-l {DEBUG,INFO,WARNING,ERROR,CRITICAL}]
                  [-N LOGGER_NAME] [--skip]
                  [--split_ratios SPLIT_RATIOS [SPLIT_RATIOS ...]]
                  [--split_names SPLIT_NAMES [SPLIT_NAMES ...]]
                  [--split_group SPLIT_GROUP] [-o OUTPUT] [--indent INDENT]

Saves the sample data in JSON format.

options:
  -h, --help            show this help message and exit
  -l {DEBUG,INFO,WARNING,ERROR,CRITICAL}, --logging_level {DEBUG,INFO,WARNING,ERROR,CRITICAL}
                        The logging level to use. (default: WARN)
  -N LOGGER_NAME, --logger_name LOGGER_NAME
                        The custom name to use for the logger, uses the plugin
                        name by default (default: None)
  --skip                Disables the plugin, removing it from the pipeline.
                        (default: False)
  --split_ratios SPLIT_RATIOS [SPLIT_RATIOS ...]
                        The split ratios to use for generating the splits
                        (must sum up to 100) (default: None)
  --split_names SPLIT_NAMES [SPLIT_NAMES ...]
                        The split names to use for the generated splits.
                        (default: None)
  --split_group SPLIT_GROUP
                        The regular expression with a single group used for
                        keeping items in the same split, e.g., for identifying
                        the base name of a file or the sample ID. (default:
                        None)
  -o OUTPUT, --output OUTPUT
                        The directory to store the .json files in. Any defined
                        splits get added beneath there. Supported variables:
                        {HOME}, {CWD}, {TMP} (default: None)
  --indent INDENT       The indent to use for pretty-printing the JSON instead
                        of optimal file size. (default: None)