diff --git a/src/sciline/param_table.py b/src/sciline/param_table.py index 585f7e8e..50ff35b9 100644 --- a/src/sciline/param_table.py +++ b/src/sciline/param_table.py @@ -71,12 +71,15 @@ def __len__(self) -> int: return self._columns.__len__() def __repr__(self) -> str: - return f"ParamTable(row_dim={self.row_dim}, columns={self._columns})" + return f"ParamTable(row_dim={self.row_dim.__name__}, columns={self._columns})" def _repr_html_(self) -> str: return ( f"
{self.row_dim.__name__} | " - + "".join(f"{k.__name__} | " for k in self._columns.keys()) + + "".join( + f"{getattr(k, '__name__', str(k).split('.')[-1])} | " + for k in self._columns.keys() + ) + "
---|---|---|
{idx} | " + "".join(f"{v} | " for v in row) + "