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
    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
Esempio n. 3
0
 def test_get_specific_parser_oldhepdata(self):
     self.assertEqual(Parser.get_concrete_class('oldhepdata').__class__, OldHEPData.__class__)