spacepy / dbprocessing

Automated processing controller for heliophysics data
5 stars 4 forks source link

Triage scripts and port to argparse #66

Closed jtniehof closed 3 years ago

jtniehof commented 3 years ago

This PR does a few things relating to script handling.

Some more clarity on the last part is probably in order. optparse was introduced in 2.3 or so and deprecated in 2.7, when argparse was introduced. That forced us to stay with optparse for as long as we wanted 2.6 support, even though we knew it was going away. So earlier scripts were written with optparse and often newer ones with argparse. Now that 2.6 is well in the rearview mirror, getting everything on argparse prepares us for the future.

There are a few scripts that directly parse sys.argv; they aren't changed for now.

Functionality shouldn't be changed; I did some chunk checks on every script (sometimes just primarily checking that the parsing worked) but we don't have deep testing on the scripts right now.

PR Checklist