Skip to content

Commit

Permalink
Merge branch 'snapshot_from_python' into 'master'
Browse files Browse the repository at this point in the history
Add function SnapShot(filename) to Python interface

See merge request jschoeberl/ngsolve!260
  • Loading branch information
JSchoeberl committed Nov 9, 2017
2 parents 47024c6 + 436f2a0 commit fa40e7c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions python/internal.py
Expand Up @@ -56,3 +56,6 @@ def VideoAddFrame():


def VideoFinalize(): def VideoFinalize():
ngsolve.solve.Tcl_Eval("Ng_VideoClip .ndraw finalize;\n") ngsolve.solve.Tcl_Eval("Ng_VideoClip .ndraw finalize;\n")

def SnapShot(filename):
ngsolve.solve.Tcl_Eval("Ng_SnapShot .ndraw {};\n".format(filename))

0 comments on commit fa40e7c

Please sign in to comment.