Merge pull request #748 from abrogley/add-trick-mc-to-swig-shortcuts

Create the shortcut trick.mc_add_variable.
This commit is contained in:
Alex Lin 2019-04-02 13:04:28 -05:00 committed by GitHub
commit d33eb22d97
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -18,6 +18,10 @@ if hasattr(top.cvar, 'trick_sys'):
# from monte carlo
mc_add_range = top.cvar.trick_sys.sched.add_range
# from Monte Carlo
if hasattr(top.cvar, 'trick_mc'):
mc_add_variable = top.cvar.trick_mc.mc.add_variable
# from the memory manager wrapper
if hasattr(top.cvar, 'trick_mm'):
read_checkpoint_from_string = top.cvar.trick_mm.mm.read_checkpoint_from_string