You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Either one of the two jobs can be done in isolation if you don't want to do both at the same time:
Combine ifex_to_json_schema.py and pretty_print_json.py so that the first file outputs in "pretty" format right away. This involves changing the print statements to instead collect up the result into an internal string, which can then be passed to the json load+dump sequence.
validate.py is very simple and throws an IndexError if no input file is provided, instead of writing a usage instruction. Modify validate.py to use the standard argparse python module, and give appropriate usage information.
(pretty_print_json.py has the same problem as validate.py, but instead of improving it, it would be better to combine it as proposed in the first bullet).
The text was updated successfully, but these errors were encountered:
Either one of the two jobs can be done in isolation if you don't want to do both at the same time:
ifex_to_json_schema.py
andpretty_print_json.py
so that the first file outputs in "pretty" format right away. This involves changing the print statements to instead collect up the result into an internal string, which can then be passed to the json load+dump sequence.validate.py
is very simple and throws an IndexError if no input file is provided, instead of writing a usage instruction. Modify validate.py to use the standardargparse
python module, and give appropriate usage information.(pretty_print_json.py has the same problem as validate.py, but instead of improving it, it would be better to combine it as proposed in the first bullet).
The text was updated successfully, but these errors were encountered: