hoffmangroup / segway

Application for semi-automated genomic annotation.
http://segway.hoffmanlab.org/
GNU General Public License v2.0
13 stars 7 forks source link

Fix parent parsers for all tasks #170

Closed EricR86 closed 1 year ago

EricR86 commented 1 year ago

Previously the parent parsers for the subtasks were subparser objects themselves. These different from plain ArgumentParser objects in that they require a title field, while ArgumentParsers, when treated as a parent parser, do not (where the equivalent field is prog). See the argparse reference on parents for details.

If subparsers shared equivalent titles, newer versions of the standard library throws an exception since it cannot disambiguate. This was happening with the empty string arguments.

Also during investigation there was a parent parser train_run_round with no added arguments that was removed.