1212
1313
1414class Analyzer :
15- """_summary_
16- """
15+ """_summary_"""
1716
1817 def __init__ (self , args : argparse .Namespace ):
1918 """_summary_
@@ -37,8 +36,7 @@ def __init__(self, args: argparse.Namespace):
3736 self .nsys_binary = args .nsys_binary
3837
3938 def _export_report_to_sqlite (self ):
40- """_summary_
41- """
39+ """_summary_"""
4240 full_cmd_str = (
4341 f"{ self .nsys_binary } export --type=sqlite --lazy=false "
4442 + f"--force-overwrite=true --output={ self .sql_path } "
@@ -94,8 +92,7 @@ def _sql_query(self, filter_string: str) -> pd.DataFrame:
9492
9593 df = pd .read_sql (sql_expr , self .db_connection )
9694 if df .empty :
97- print (
98- f'Warning: SQL result is empty for filter string "{ filter_string } "' )
95+ print (f'Warning: SQL result is empty for filter string "{ filter_string } "' )
9996 return df
10097
10198 def _generate_hist (self , df : pd .DataFrame ) -> tuple [np .ndarray , np .ndarray ]:
@@ -116,7 +113,7 @@ def _generate_hist(self, df: pd.DataFrame) -> tuple[np.ndarray, np.ndarray]:
116113 idx_upperbound = idx
117114 break
118115
119- tight_bin_edges = self .bin_full_in_MiB [0 : (idx_upperbound + 1 )]
116+ tight_bin_edges = self .bin_full_in_MiB [0 : (idx_upperbound + 1 )]
120117 if max_v > self .bin_full_in_MiB [- 1 ]:
121118 tight_bin_edges .append (max_v )
122119 return np .histogram (my_series , tight_bin_edges )
@@ -192,8 +189,7 @@ def _process(self, filter_string: str):
192189 self ._print (filter_string , hist , bin_edges )
193190
194191 def run (self ):
195- """_summary_
196- """
192+ """_summary_"""
197193 self ._initialize_bins ()
198194
199195 self ._export_report_to_sqlite ()
0 commit comments