![]() # the error messages can be printed for each fileįull_submission_validator.print_errors( 'submission.yaml') # or uncomment to validate an archive file # is_archive_valid = full_submission_validator.validate(archive='TestHEPSubmission.zip') # or uncomment to validate a single file # is_file_valid = full_submission_validator.validate(file='single_yaml_file.yaml') # if there are any error messages, they are retrievable through this call Is_dir_valid = full_submission_validator.validate(directory= 'TestHEPSubmission') Object: from hepdata_validator.full_submission_validator import FullSubmissionValidator, SchemaTypeįull_submission_validator = FullSubmissionValidator() To validate a full submission, instantiate a FullSubmissionValidator Or a YAML data file) to check - see /en/latest/single_yaml.html. d, -directory TEXT Directory to check (defaults to current working Can check eitherĪ directory, an archive file, or the single YAML file format. Offline validation of submission.yaml and YAML data files. To validate a single YAML file in the current directory: $ hepdata-validate -f single_yaml_file.yaml tgz) in the currentĭirectory: $ hepdata-validate -a TestHEPSubmission.zip To validate a submission comprising of multiple files in anotherĭirectory: $ hepdata-validate -d. ![]() To validate a submission comprising of multiple files in the current Hepdata-validate to your path, which allows you to validate a HEPData Installing the hepdata-validator package adds the command Offline can be more efficient in checking your submission is valid The same package is used for validating uploads made to ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |