File tree Expand file tree Collapse file tree 3 files changed +5
-7
lines changed
Expand file tree Collapse file tree 3 files changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -103,12 +103,12 @@ def main():
103103 args = parser .parse_args ()
104104
105105 # Set up logging to file: ideeplc_run.log
106- log_file = Path (f "ideeplc.log" )
106+ log_file = Path ("ideeplc.log" )
107107 _setup_logging (args .log_level , log_file = log_file )
108108
109109 try :
110110 run_ideeplc (args ) # This should be the entry function from your main logic
111- except Exception as e :
111+ except Exception :
112112 LOGGER .exception ("Execution failed." )
113113 sys .exit (1 )
114114
Original file line number Diff line number Diff line change 1- import platform
21import logging
3- from typing import Tuple , Optional , Union
2+ from typing import Tuple , Union
43import pandas as pd
54import numpy as np
65from torch .utils .data import Dataset , DataLoader
@@ -47,7 +46,7 @@ def data_initialize(
4746 raise
4847
4948 if "seq" not in df .columns :
50- LOGGER .error (f "CSV file must contain a 'seq' column with peptide sequences." )
49+ LOGGER .error ("CSV file must contain a 'seq' column with peptide sequences." )
5150 raise ValueError ("Missing 'seq' column in the CSV file." )
5251 if "modifications" not in df .columns :
5352 LOGGER .error (
Original file line number Diff line number Diff line change 1- import argparse
21import datetime
32import logging
43import torch
@@ -92,7 +91,7 @@ def main(args):
9291 input_file = args .input ,
9392 save_results = args .save ,
9493 )
95- LOGGER .info (f "Prediction completed." )
94+ LOGGER .info ("Prediction completed." )
9695 # Generate Figures
9796 make_figures (
9897 predictions = pred_results ,
You can’t perform that action at this time.
0 commit comments