-
Notifications
You must be signed in to change notification settings - Fork 83
Closed
Description
Description
When using the IR extraction parser in the decompress script, an AttributeError is raised because the --dataset argument was not added to the ir_extraction_parser, only to the json_extraction_parser.
Error
AttributeError: 'Namespace' object has no attribute 'dataset'
Steps to Reproduce
- Run the decompress script with IR extraction:
./decompress.sh i --orig-file-id=4577ad28-f615-4d37-8e7f-cd35dbb2324c 1 - The script fails at line 188 in
handle_extract_stream_cmdwhen trying to accessparsed_args.dataset
Root Cause
In PR #1050, the --dataset argument was only added to the json_extraction_parser but not to the ir_extraction_parser. However, the handle_extract_stream_cmd function tries to access parsed_args.dataset regardless of which parser was used.
Expected Behavior
The ir_extraction_parser should also have the --dataset argument added, or the code should handle cases where the dataset argument is not available.
Related
Metadata
Metadata
Assignees
Labels
No labels