jieunbyun / BNS-JT

Reference: Byun, J.-E. and Song, J. (2021). A general framework of Bayesian network for system reliability analysis using junction tree. Reliability Engineering & System Safety, 216, 107952.
MIT License
5 stars 4 forks source link

test_variable_elim_cond not working #81

Closed dynaryu closed 3 months ago

dynaryu commented 3 months ago

created a branch class, and moved relevant functions

jieunbyun commented 3 months ago

I could not test the function for some technical hiccup with vs code. I will look into it soon.

dynaryu commented 3 months ago

Can you test the code by parts? Is there any reason to use globals()?

jieunbyun commented 3 months ago

The global() is used to check if the variable has already been defined because it needs to be set only once in the first for loop. Could there be a better way to do this?