Skip to content

Commit a7e0b51

Browse files
committed
Accommodate missing LP data
1 parent ceb2c70 commit a7e0b51

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/npc_sessions/sessions.py

+7-3
Original file line numberDiff line numberDiff line change
@@ -3052,9 +3052,13 @@ def _lp(self) -> tuple[pynwb.core.DynamicTable, ...]:
30523052

30533053
df = pd.DataFrame()
30543054
for result_name in utils.LP_RESULT_TYPES:
3055-
result_df = utils.get_LPFaceParts_result_dataframe(
3056-
self.id, utils.LP_MAPPING[camera_name], result_name
3057-
)
3055+
try:
3056+
result_df = utils.get_LPFaceParts_result_dataframe(
3057+
self.id, utils.LP_MAPPING[camera_name], result_name
3058+
)
3059+
except FileNotFoundError as exc:
3060+
logging.info(repr(exc))
3061+
return ()
30583062
if len(timestamps) != len(result_df):
30593063
logger.warning(
30603064
f"{self.id} {camera_name} {result_name} lightning pose face parts output has wrong shape {len(df)}, expected {len(timestamps)} frames."

0 commit comments

Comments
 (0)