I am trying to conduct a risk assessment using GeNIe and pySMILE. To do this I set up probabilities for environmental influences, which works great. The result of this is a function node with a discretized temperature distribution. But to proceed with the risk assessment I need to use advanced calculation methods to determine the stress on my system induced by the temperature.

My idea was to read out the data using pySMILE, to perform the calculation needed in Python and then give back the results. So I basically want to use the Equation node but with a costum Python integrated calculation.

Reading out the values of the "Temperature" node works great using:

Code: Select all

```
net = pysmile.Network()
net.read_file("System.xdsl")
net.update_beliefs()
T_list = net.get_node_value("Temperature")
```

Code: Select all

```
Stress_list = calculate_stress(T_list)
```

Kind regards,

David