Component debugging funcionality. (#4012)

### What problem does this PR solve?

#3993
### Type of change

- [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
Kevin Hu
2024-12-13 08:50:32 +08:00
committed by GitHub
parent 275b5d14f2
commit 7559bbd46d
5 changed files with 16 additions and 5 deletions

View File

@ -87,4 +87,8 @@ class Categorize(Generate, ABC):
return Categorize.be_output(list(self._param.category_description.items())[-1][1]["to"])
def debug(self, **kwargs):
df = self._run([], **kwargs)
cpn_id = df.iloc[0, 0]
return Categorize.be_output(self._canvas.get_compnent_name(cpn_id))