Skip to main content
Question

Did anyone create a code to automatically delete/update component content in the analysis using pycelonis ML workbench?

  • June 4, 2024
  • 1 reply
  • 3 views

We would like to move to KM usage, but we have a lot of legacy analysis to be linked to KM. Ideally we would like to develop a code that could update reference from local KPI to KM kpi? E.g. from KPI("CT AVG") to KPI("CT_AVG"). 

 

I can identify approximate cases where update needs to happen, but I cannot really find if it is possible (and how) to do the update of KPI name in the component itself.

matt.witty13
Level 5

This is possible! I've been able to do so with limited testing. Depends how many KPIs/data points you're looking to migrate.

 

A knowledge model is a Python Dictionary.

 

image 

So you would need to adjust your KPI name by substituting spaces for underscores as is the needed formatting. But it is definitely possible.


Reply