In [1]:
# DAGpy input filter
import dill
A_var_a = dill.load(open('cache/A_var_a.dill','rb'))
In [2]:
var_b = A_var_a / 2
In [3]:
print('var_b = {}'.format(var_b))
In [4]:
# DAGpy output filter
# To change the filter, edit the block properties, not this cell.
import dill
import os
os.makedirs(os.path.dirname('cache/B_var_b.dill'), exist_ok=True)
dill.dump(var_b, open('cache/B_var_b.dill', 'wb+'))