Skip to content

Commit

Permalink
Fix superfluous-parens
Browse files Browse the repository at this point in the history
  • Loading branch information
j3soon committed Feb 25, 2023
1 parent 75945ba commit 26adc9a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tbparse/summary_reader.py
Expand Up @@ -275,7 +275,7 @@ def get_events(self, event_type: str) -> pd.DataFrame:
# iteratively prepend dir_name
if 'dir_name' in df and os.path.isdir(child.log_path):
dir_name = os.path.basename(child.log_path)
df_cond = (df['dir_name'] == '')
df_cond = df['dir_name'] == ''
df.loc[df_cond, 'dir_name'] = dir_name
df.loc[~df_cond, 'dir_name'] = \
dir_name + '/' + df.loc[~df_cond, 'dir_name']
Expand Down Expand Up @@ -641,7 +641,7 @@ def histogram_to_bins(counts: np.ndarray, limits: np.ndarray,
* counts[bucket_idx]
bin_y += count if intersect > 0 else 0
else:
is_final_bin = (bin_right >= upper_bound)
is_final_bin = bin_right >= upper_bound
single_value_overlap = \
(bin_left <= bucket_left and
((bucket_right <= bin_right) if is_final_bin else
Expand Down

0 comments on commit 26adc9a

Please sign in to comment.