Tsjerk / Insane

INSert membrANE - A simple, versatile tool for building coarse-grained simulation systems
GNU General Public License v2.0
39 stars 24 forks source link

Python call #43

Closed jbarnoud closed 7 years ago

jbarnoud commented 7 years ago

Streamline the signature and the return values of insane.old_main

This allows to do things like:

import insane
import insane.cli

options = insane.cli.OPTIONS._default_dict()
options['out'] = 'memb.gro'
options['distance'] = 10
options['upper'] = [('DOPC', 0, 1)]

insane.old_main(options)

It also decouples the writing methods to be used from a python interpretor.