Skip to content

Commit

Permalink
Updated utils.py to fix j1939 TP issue
Browse files Browse the repository at this point in the history
  • Loading branch information
MatinF committed Feb 8, 2023
1 parent 77a758a commit 342b4f0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,8 @@ def identify_matching_ids(self,df_raw,res_id_list_full, bam_pgn):
if self.tp_type == "j1939":
df_raw_pgns = df_raw["ID"].apply(self.calculate_pgn)
df_raw_match = df_raw_pgns.isin(res_id_list_full)
res_id_list = res_id_list_full.remove(bam_pgn)
res_id_list = res_id_list_full.copy()
res_id_list.remove(bam_pgn)
if type(res_id_list) is not list:
res_id_list = [res_id_list]
elif self.tp_type == "uds":
Expand Down

0 comments on commit 342b4f0

Please sign in to comment.