Skip to content

Commit

Permalink
Remove duplicate subparser
Browse files Browse the repository at this point in the history
In Python 3.11 adding the same subparser twice will raise an exception.
  • Loading branch information
mferrera committed Jan 9, 2024
1 parent bb7a6db commit 467d316
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions res2df/res2csv.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
CATEGORY: str = "utility.eclipse"
EXAMPLES: str = """
Outputting the EQUIL data from a .DATA file. This is implicitly
Outputting the EQUIL data from a .DATA file. This is implicitly
supplied in ERT configs::
FORWARD_MODEL RES2CSV(<SUBCOMMAND>=equil, <OUTPUT>=equil.csv)
Expand Down Expand Up @@ -176,16 +176,6 @@ def get_parser() -> argparse.ArgumentParser:
"are empty and vice versa"
),
)
subparsers_dict["fipreports"] = subparsers.add_parser(
"fipreports",
help=("Extract FIPxxxxx REPORT REGION data from PRT output file."),
formatter_class=argparse.ArgumentDefaultsHelpFormatter,
description=(
"Extract FIPxxxxx REPORT REGION data from PRT file. "
"This parses currently in-place, outflows to wells and regions, and "
"material balance errors"
),
)
subparsers_dict["compdat"] = subparsers.add_parser(
"compdat",
help="Extract COMPDAT data",
Expand Down

0 comments on commit 467d316

Please sign in to comment.