Changing potential from table to TreeADD in the GUI does not show branches for the root variable

Issue #441 new
Manuel Luque created an issue

If the user opens the network “ID-decide-test.pgmx” and decides to change the type of potential of the node “Health state” to TreeADD then the GUI only shows the root variable “Disease”, but it does not display any branch (it should displays two branches, one for each state of “Disease”). There is a trick to circumvent this problem, which consists in changing the root variable (right click on “Change variable”) to “Therapy” and then change again to “Disease”.

Comments (2)

  1. Jorge Pérez

    It seems to be a problem related to the PotentialRole, see line 91 in SetPotentialEdit.java and the method getByName of the PotentialManager (line 72) When the role is “unspecified” the behaviour is the one presented by @Manuel Luque .

    When building a new ID with the same structure as “ID-decide-test.pgmx”, I have found that the role of the Exact potential is set to “conditionalProbability” (instead of “unspecified”, which is the role of the “Health state” potential in the attached network). We must check the consistency of the different roles throughout the code.

  2. Log in to comment