Keren Lasker wrote: > I would like to add various python scripts to the DOMINO module. These > scripts would have functionalities such as junction tree construction etc. > Currently we have a global helper module, but I think it makes sense to > add helper directory also within a module for more specific setup scripts. > so calling junction tree construction would be: > IMP.domino.helper.create_junction_tree()
That's easy to do - simply make a 'src' directory under modules/domino/pyext/ and put your helper.py in it. As an example, see kernel/pyext/src/test.py.
You could also use %extend or %pythoncode in your SWIG .i file to add extra Python methods or functions to the base IMP.domino Python module.
Ben