From 8e6637f90661ecea62fae0242fe156c173fec47a Mon Sep 17 00:00:00 2001 From: Meg Schwamb Date: Thu, 14 Mar 2024 23:53:48 +0000 Subject: [PATCH 1/2] update ephemeris output file check update ephemeris output file check --- src/sorcha/modules/PPCommandLineParser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sorcha/modules/PPCommandLineParser.py b/src/sorcha/modules/PPCommandLineParser.py index 1dc72c39..62334b26 100644 --- a/src/sorcha/modules/PPCommandLineParser.py +++ b/src/sorcha/modules/PPCommandLineParser.py @@ -77,7 +77,7 @@ def PPCommandLineParser(args): # if a value was provided, warn the user about overwriting if the file exists if cmd_args_dict["output_ephemeris_file"]: - warn_or_remove_file(cmd_args_dict["output_ephemeris_file"], args.f, pplogger) + warn_or_remove_file( os.path.join(cmd_args_dict["outpath"], cmd_args_dict["output_ephemeris_file"]+ ".*"), args.f, pplogger) cmd_args_dict["surveyname"] = args.s cmd_args_dict["outfilestem"] = args.t From 1b1faaf99bc11beb88cb67108f81001444624b5d Mon Sep 17 00:00:00 2001 From: Meg Schwamb Date: Thu, 14 Mar 2024 23:55:27 +0000 Subject: [PATCH 2/2] linted file linted file --- src/sorcha/modules/PPCommandLineParser.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/sorcha/modules/PPCommandLineParser.py b/src/sorcha/modules/PPCommandLineParser.py index 62334b26..65baac61 100644 --- a/src/sorcha/modules/PPCommandLineParser.py +++ b/src/sorcha/modules/PPCommandLineParser.py @@ -77,7 +77,11 @@ def PPCommandLineParser(args): # if a value was provided, warn the user about overwriting if the file exists if cmd_args_dict["output_ephemeris_file"]: - warn_or_remove_file( os.path.join(cmd_args_dict["outpath"], cmd_args_dict["output_ephemeris_file"]+ ".*"), args.f, pplogger) + warn_or_remove_file( + os.path.join(cmd_args_dict["outpath"], cmd_args_dict["output_ephemeris_file"] + ".*"), + args.f, + pplogger, + ) cmd_args_dict["surveyname"] = args.s cmd_args_dict["outfilestem"] = args.t