The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here

Coloring IO object data

HaoyangHaoyang image Learner I
Hi,

I defined an IOobject datatype, and assigned a color to it, I find it when there is too much lines consisting this type of data in a process, the previous lines will not show the correct color and this data was removed from the output of the operator(no data when I hover my mouse above the output port). It seems RM only render the last few lines that carries this type of data. I also tested this with breakpoints, I connected several operators outputting this same type of object, and have a breakpoint for each of them, when I executed the operators one by one, the first four operators have normal output line color. However, when I executed the fifth operator, the color for the first one returned to gray which was the default. Sometimes, this breakpoint method have kept all the color and sometimes not, if I don't set the breakpoint and execute the process as a whole, there will only be the last 4 lines colored. Also, even in the case where all the colors were kept because of the breakpoint, when I go to the higher process and return to this subprocess, the color will again only available to the last 4 lines. It seems that you have used a buffer or what and have cleared them after execution, without keeping the color.

Best,
Haoyang

Best Answers

Answers

  • HaoyangHaoyang image Learner I
    @MartinLiebig
    Hi, thanks for answering, I believe it's the reason.
    Could you kindly show me an example of setting the metadata transformation? I believe if I can define what kind of metadata a port is going to output, then it will automatically be colored to the right color?

    Best,
    Haoyang
  • HaoyangHaoyang image Learner I
    @MartinLiebig
    Thanks, I get it. Seems I will have to define transformation rules for each port.

    But I still have some problem, I implemented my own ioobject, which extends ResultObjectAdapter. When I used this class in the function getMetaData(), then it says my class is not a MetaData class. However, when I went to change my class to extends MetaData, I can no longer use it as  an IOobject, what should I do to get some datatype I want to pass around as an IOobject and can be used as a MetaData.

    I am new to extending RM, sorry about bothering you with so much questions.

    Best,
    Haoyang
  • HaoyangHaoyang image Learner I
    @MartinLiebig

    I am working on something to allow users to use first order logic to build tree/flowchart structures in RM, and more than that, I am also using python operators to make it more powerful which I am unable to tell at this stage because it's a research project I am working on. After all, I am quite happy you have such a good community for me to get support.

    Best,
    Haoyang
  • MartinLiebigMartinLiebig image RM Data Scientist
    Hi,
    You have to define two classes. One for the metadata, one for the object itself. Thats what you register in the PluginInit.
    - Sr. Director Data Solutions, Altair RapidMiner -
    Dortmund, Germany
Sign In or Register to comment.