Example #1
0
    def options(cls):
        options = super(ArrayWriter, cls).options()
        options['table'] = Option('table', 't', required=False, variable_mapping='table_id', default=None,
                                  help=('Specifies which table should be exported, if not specified all tables will be exported '
                                        '(in this case output must be a directory, not a file)'))

        return options
Example #2
0
    def options(cls):
        options = ArrayWriter.options()
        options['pack'] = Option(
            'pack',
            type=bool,
            default=False,
            required=False,
            help=
            ('If specified, dependent variables will be put in one table, instead of creating one '
             'table per dependent variable in CSV file'))
        options['separator'] = Option(
            'separator',
            type=str,
            default=',',
            required=False,
            help='Defines separator for CSV file, the default is comma: ","')

        return options
Example #3
0
 def options(cls):
     options = Writer.options()
     options['single_file'] = Option(
         'single-file',
         type=bool,
         default=False,
         variable_mapping='single_file',
         required=False,
         help="If set output will be written to single yaml file, instead "
         "of multiple files (separating data and metadata of the tables)")
     return options
Example #4
0
 def options(cls):
     options = ArrayWriter.options()
     options['rivet_analysis_name'] = Option(
         'rivet-analysis-name',
         'r',
         type=str,
         default='RIVET_ANALYSIS_NAME',
         required=False,
         variable_mapping='rivet_analysis_name',
         help='Rivet analysis name, e.g. "ATLAS_2016_I1424838"')
     return options
    def options(cls):
        options = Parser.options()
        options['strict'] = Option(
            'strict',
            default=True,
            type=bool,
            required=False,
            help=
            'if specified any additional keywords in OldHEPData file will raise an error'
        )
        options['use_additional_data'] = Option(
            'use-additional-data',
            default=False,
            type=bool,
            required=False,
            variable_mapping='use_additional_data',
            help=
            ('if specified additional data which does not have equivalent in new HEPData format'
             ' will be appended to comment section of the output document'))

        return options
Example #6
0
 def options(cls):
     return {'testoption': Option('testoption')}