Python wrapper for running instances of trisurf-ng
Miha
2017-01-17 ab06932d8e6534679f805ba43e851cc154d78cd1
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'])