Skip to content

Commit

Permalink
fixed the bug
Browse files Browse the repository at this point in the history
  • Loading branch information
alexlib committed Dec 30, 2024
1 parent 8ea65d9 commit ec0ff59
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions pyptv/pyptv_gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -775,8 +775,6 @@ def detect_part_track(self, info):
prm.Basename_4_Seq,
]

print("Inside detect_part_track")
print(base_names)

# load first image from sequence
info.object.load_set_seq_image(seq_first)
Expand Down Expand Up @@ -1430,14 +1428,11 @@ def load_set_seq_image(self, seq: int, update_all=True, display_only=False):
display_only (bool, optional): _description_. Defaults to False.
"""
n_cams = len(self.camera_list)
if not hasattr(self, "base_name"):
self.base_name = []
for i in range(n_cams):
exec(
"self.base_name.append"
+ f"(self.exp1.active_params.m_params.Basename_{i+1}_Seq)"
)
print(f" base name in GUI is {self.base_name[i]}")
# if not hasattr(self, "base_name"):
self.base_name = [
getattr(self.exp1.active_params.m_params, f"Basename_{i+1}_Seq")
for i in range(n_cams)
]

# i = seq
# seq_ch = f"{seq:04d}"
Expand Down Expand Up @@ -1471,7 +1466,7 @@ def overlay_set_images(self, seq_first: int, seq_last:int):


for cam_id in range(len(self.camera_list)):
print("Inside overlay: ", self.base_name[cam_id])
# print("Inside overlay: ", self.base_name[cam_id])

temp_img = []
for seq in range(seq_first, seq_last):
Expand Down

0 comments on commit ec0ff59

Please sign in to comment.