Skip to content

Commit c42f02a

Browse files
committed
fix code
1 parent fd19733 commit c42f02a

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

autosubmit/autosubmit.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3231,8 +3231,8 @@ def recovery(
32313231
expid, job_list.get_job_list(), os.path.join(exp_path, "/tmp/LOG_", expid),
32323232
output_format=output_type, packages=packages, show=not hide, groups=groups_dict,
32333233
job_list_object=job_list)
3234-
except Exception as e:
3235-
Log.warning(f"An error has occurred while plotting the jobs list after recovery. "
3234+
except Exception:
3235+
Log.warning("An error has occurred while plotting the jobs list after recovery. "
32363236
"Check if you have X11 redirection and an img viewer correctly set. Trace: {str(e)}")
32373237
try:
32383238
if detail:
@@ -5298,6 +5298,7 @@ def _setup_prune(json_filter: dict[str, Any]) -> tuple[list[str], list[str], int
52985298

52995299
def _prune_jobs(jobs: list[Job], dates: list[str], members: list[str], chunks: int) -> list[Job]:
53005300
"""Return jobs from *jobs* that match the given members, dates and chunk limits.
5301+
53015302
:param jobs: list of jobs to prune
53025303
:param dates: list of dates to match
53035304
:param members: list of members to match
@@ -5315,11 +5316,10 @@ def _prune_jobs(jobs: list[Job], dates: list[str], members: list[str], chunks: i
53155316
)
53165317
]
53175318

5318-
final_list = []
5319-
53205319
if not filter_chunks or not isinstance(filter_chunks, str):
53215320
return []
53225321

5322+
final_list = []
53235323
filter_chunks = filter_chunks.upper()
53245324
matching_jobs = job_list.get_job_list()
53255325
if "," in filter_chunks:
@@ -5436,9 +5436,8 @@ def set_status(expid: str, noplot: bool, save: bool, final: str, filter_list: st
54365436
Autosubmit._validate_set_status_filters(as_conf, job_list, filter_list, filter_chunks, filter_status,
54375437
filter_section, filter_type_chunk, filter_type_chunk_split)
54385438
#### Starts the filtering process ####
5439-
Log.info(f"Filtering jobs...")
5439+
Log.info("Filtering jobs...")
54405440
final_list = []
5441-
jobs_filtered = []
54425441
final_status = Autosubmit._get_status(final)
54435442
# I have the impression that whoever did this function thought about the possibility of having multiple filters at the same time
54445443
# But, as it was, it is not possible to have multiple filters at the same time due to the way the code is written

autosubmit/history/database_managers/experiment_history_db_manager.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@
3838
from autosubmit.history.database_managers.database_manager import (
3939
DatabaseManager,
4040
)
41-
from autosubmit.log.log import AutosubmitCritical
4241

4342
CURRENT_DB_VERSION = 19 # Update this if you change the database schema
4443
DB_EXPERIMENT_HEADER_SCHEMA_CHANGES = 14

0 commit comments

Comments
 (0)