Skip to content

Commit

Permalink
remove --disqualify-zero-energy-pixels pt-2
Browse files Browse the repository at this point in the history
  • Loading branch information
ric-evans committed Jun 7, 2023
1 parent 886f5cc commit 272b5a0
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 16 deletions.
7 changes: 0 additions & 7 deletions tests/compare_reco_pixel_pkl.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,6 @@ def main():
action="store_true",
help="'assert' the results",
)
parser.add_argument( # TODO: remove?
"--disqualify-zero-energy-pixels",
default=False,
action="store_true",
help='whether a zero-energy pixel value "disqualifies" the entire pixel\'s numerical results',
)

args = parser.parse_args()
logging_tools.log_argparse_args(args, logger=logger, level="WARNING")
Expand All @@ -81,7 +75,6 @@ def load_from_out_pkl(out_pkl_fpath: Path) -> SkyScanResult:
args.do_assert,
args.diff_out_dir,
logger,
args.disqualify_zero_energy_pixels, # TODO: remove?
)


Expand Down
9 changes: 0 additions & 9 deletions tests/compare_scan_results.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,6 @@ def main():
action="store_true",
help="'assert' the results",
)
parser.add_argument( # TODO: remove?
"--disqualify-zero-energy-pixels",
default=False,
action="store_true",
help='whether a zero-energy pixel value "disqualifies" the entire pixel\'s numerical results',
)

args = parser.parse_args()
logging_tools.log_argparse_args(args, logger=logger, level="WARNING")
Expand All @@ -78,7 +72,6 @@ def main():
args.do_assert,
args.diff_out_dir,
logger,
args.disqualify_zero_energy_pixels, # TODO: remove?
)


Expand All @@ -90,7 +83,6 @@ def compare_then_exit(
do_assert: bool,
diff_out_dir: str,
logger: logging.Logger,
do_disqualify_zero_energy_pixels: bool, # TODO: remove?
) -> None:
"""Compare the results, dump a json diff file, and sys.exit."""
dump_json_diff = (
Expand All @@ -101,7 +93,6 @@ def compare_then_exit(
close = actual.is_close(
expected,
dump_json_diff=dump_json_diff,
do_disqualify_zero_energy_pixels=do_disqualify_zero_energy_pixels, # TODO: remove?
)
equal = actual == expected

Expand Down

0 comments on commit 272b5a0

Please sign in to comment.