Skip to content

Commit

Permalink
Fix: flake8
Browse files Browse the repository at this point in the history
Signed-off-by: h-suzuki <[email protected]>
  • Loading branch information
h-suzuki-isp committed Jul 24, 2024
1 parent b1bf19c commit ecac58e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/caret_analyze/infra/lttng/event_counter.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,8 @@ def ns_and_node_name(ns: str, name: str) -> str:
timer_handle_to_node_name.get(handler, '-')

for handler, row in data.subscriptions.df.iterrows():
rmw_handle_to_node_name[row['rmw_handle']] = node_handle_to_node_name[row['node_handle']]
rmw_handle_to_node_name[row['rmw_handle']] = \
node_handle_to_node_name[row['node_handle']]
rmw_handle_to_topic_name[row['rmw_handle']] = row['topic_name']

tilde_pub_to_topic_name: dict[int, str] = {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,6 @@ def _get_rmw_handle_from_callback_object(
except KeyError:
return [None]


@staticmethod
def _ensure_dataframe(
dataframe_or_series: pd.DataFrame | pd.Series
Expand Down
3 changes: 2 additions & 1 deletion src/caret_analyze/runtime/path.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,8 @@ def _merge_records(
left_records.sort(first_column)

# search drop columns, which contain 'source_timestamp'
source_columns = [column for column in left_records.columns if 'source_timestamp' in column]
source_columns = \
[column for column in left_records.columns if 'source_timestamp' in column]
left_records.drop_columns(source_columns)

return left_records
Expand Down

0 comments on commit ecac58e

Please sign in to comment.