Tsjerk / Insane

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

Apply the simopt.opt_func decorator #46

Closed jbarnoud closed 7 years ago

jbarnoud commented 7 years ago

Use simopt.opt_func on imsane.core.old_main. This requires to use the OPTIONS constant in insane.core, so this commit moves the definition of this constant in insane.options. This allows to use options.OPTIONS in both cli.py and core.py without cyclic import.

This PR requires https://github.com/Tsjerk/simopt/pull/4 to be merged.