Python wrapper for running instances of trisurf-ng
Samo Penic
2017-01-27 20db829c3a764ae1ea8ff79412bc7e0e9a6c92a9
trisurf/analyses.py
@@ -13,7 +13,8 @@
   print(kwargs.get('args',None))
def plotrunningavginteractive(run, **kwargs):
# can be wrapped to specify scalar_field)
def plotrunningavginteractive(run, scalar_field='vertices_idx', **kwargs):
   import matplotlib.pyplot as plt
   from trisurf import VTKRendering as vtk
   import math
@@ -26,7 +27,7 @@
         avg.append(np.average(col[:-i]))
      return avg
   def spawned_viewer(n):
      vtk.Renderer(kwargs.get('args', None),kwargs.get('host',None),run, n)
      vtk.Renderer(kwargs.get('args', None),kwargs.get('host',None),run, timestep=n,scalar_field=scalar_field)
   fig=plt.figure(1)
   ra=running_avg(table['hbar'])