Skip to content

Commit 0ed5969

Browse files
Update trinity/utils/monitor.py
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
1 parent 78c7aa3 commit 0ed5969

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

trinity/utils/monitor.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,10 @@ def log_table(self, table_name: str, experiences_table: pd.DataFrame, step: int)
327327
tbl = swanlab.echarts.Table()
328328
tbl.add(headers, rows)
329329
swanlab.log({table_name: tbl}, step=step)
330-
except Exception:
330+
except Exception as e:
331+
self.console_logger.warning(
332+
f"Failed to log table '{table_name}' as echarts, falling back to CSV. Error: {e}"
333+
)
331334
# Fallback: log as CSV string if echarts table is unavailable
332335
csv_str = experiences_table.to_csv(index=False)
333336
swanlab.log({table_name: csv_str}, step=step)

0 commit comments

Comments
 (0)