::
- print info, var[-1]
+ print(str(info)+" "+str(var[-1]))
.. index:: single: ValueAndIndexPrinter (Observer)
::
- print str(info)+" index %i:"%(len(var)-1), var[-1]
+ print(str(info)+(" index %i:"%(len(var)-1))+" "+str(var[-1]))
.. index:: single: ValueSeriePrinter (Observer)
::
- print info, var[:]
+ print(str(info)+" "+str(var[:]))
.. index:: single: ValueSaver (Observer)
istep = 0
f='/tmp/value_%s_%05i.txt'%(info,istep)
f=re.sub('\s','_',f)
- print 'Value saved in "%s"'%f
+ print('Value saved in "%s"'%f)
numpy.savetxt(f,v)
.. index:: single: ValueSerieSaver (Observer)
istep = 0
f='/tmp/value_%s_%05i.txt'%(info,istep)
f=re.sub('\s','_',f)
- print 'Value saved in "%s"'%f
+ print('Value saved in "%s"'%f)
numpy.savetxt(f,v)
.. index:: single: ValuePrinterAndSaver (Observer)
import numpy, re
v=numpy.array(var[-1], ndmin=1)
- print info,v
+ print(str(info)+" "+str(v))
global istep
try:
istep += 1
istep = 0
f='/tmp/value_%s_%05i.txt'%(info,istep)
f=re.sub('\s','_',f)
- print 'Value saved in "%s"'%f
+ print('Value saved in "%s"'%f)
numpy.savetxt(f,v)
.. index:: single: ValueIndexPrinterAndSaver (Observer)
import numpy, re
v=numpy.array(var[-1], ndmin=1)
- print str(info)+" index %i:"%(len(var)-1),v
+ print(str(info)+(" index %i:"%(len(var)-1))+" "+str(v))
global istep
try:
istep += 1
istep = 0
f='/tmp/value_%s_%05i.txt'%(info,istep)
f=re.sub('\s','_',f)
- print 'Value saved in "%s"'%f
+ print('Value saved in "%s"'%f)
numpy.savetxt(f,v)
.. index:: single: ValueSeriePrinterAndSaver (Observer)
import numpy, re
v=numpy.array(var[:], ndmin=1)
- print info,v
+ print(str(info)+" "+str(v))
global istep
try:
istep += 1
istep = 0
f='/tmp/value_%s_%05i.txt'%(info,istep)
f=re.sub('\s','_',f)
- print 'Value saved in "%s"'%f
+ print('Value saved in "%s"'%f)
numpy.savetxt(f,v)
.. index:: single: ValueGnuPlotter (Observer)
::
- print info, var[-1]
+ print(str(info)+" "+str(var[-1]))
import numpy, Gnuplot
v=numpy.array(var[-1], ndmin=1)
global ifig,gp
::
- print info, var[:]
+ print(str(info)+" "+str(var[:]))
import numpy, Gnuplot
v=numpy.array(var[:], ndmin=1)
global ifig,gp
::
- print info, var[-1]
+ print(str(info)+" "+str(var[-1]))
import numpy, re
v=numpy.array(var[-1], ndmin=1)
global istep
istep = 0
f='/tmp/value_%s_%05i.txt'%(info,istep)
f=re.sub('\s','_',f)
- print 'Value saved in "%s"'%f
+ print('Value saved in "%s"'%f)
numpy.savetxt(f,v)
import Gnuplot
global ifig,gp
::
- print info, var[:]
+ print(str(info)+" "+str(var[:]))
import numpy, re
v=numpy.array(var[:], ndmin=1)
global istep
istep = 0
f='/tmp/value_%s_%05i.txt'%(info,istep)
f=re.sub('\s','_',f)
- print 'Value saved in "%s"'%f
+ print('Value saved in "%s"'%f)
numpy.savetxt(f,v)
import Gnuplot
global ifig,gp
::
import numpy
- print info, numpy.nanmean(var[-1])
+ print(str(info)+" "+str(numpy.nanmean(var[-1])))
.. index:: single: ValueStandardError (Observer)
::
import numpy
- print info, numpy.nanstd(var[-1])
+ print(str(info)+" "+str(numpy.nanstd(var[-1])))
.. index:: single: ValueVariance (Observer)
::
import numpy
- print info, numpy.nanvar(var[-1])
+ print(str(info)+" "+str(numpy.nanvar(var[-1])))
.. index:: single: ValueL2Norm (Observer)
import numpy
v = numpy.matrix( numpy.ravel( var[-1] ) )
- print info, float( numpy.linalg.norm(v) )
+ print(str(info)+" "+str(float( numpy.linalg.norm(v) )))
.. index:: single: ValueRMS (Observer)
import numpy
v = numpy.matrix( numpy.ravel( var[-1] ) )
- print info, float( numpy.sqrt((1./v.size)*(v*v.T)) )
+ print(str(info)+" "+str(float( numpy.sqrt((1./v.size)*(v*v.T)) )))
::
- print info, var[-1]
+ print(str(info)+" "+str(var[-1]))
.. index:: single: ValueAndIndexPrinter (Observer)
::
- print str(info)+" index %i:"%(len(var)-1), var[-1]
+ print(str(info)+(" index %i:"%(len(var)-1))+" "+str(var[-1]))
.. index:: single: ValueSeriePrinter (Observer)
::
- print info, var[:]
+ print(str(info)+" "+str(var[:]))
.. index:: single: ValueSaver (Observer)
istep = 0
f='/tmp/value_%s_%05i.txt'%(info,istep)
f=re.sub('\s','_',f)
- print 'Value saved in "%s"'%f
+ print('Value saved in "%s"'%f)
numpy.savetxt(f,v)
.. index:: single: ValueSerieSaver (Observer)
istep = 0
f='/tmp/value_%s_%05i.txt'%(info,istep)
f=re.sub('\s','_',f)
- print 'Value saved in "%s"'%f
+ print('Value saved in "%s"'%f)
numpy.savetxt(f,v)
.. index:: single: ValuePrinterAndSaver (Observer)
import numpy, re
v=numpy.array(var[-1], ndmin=1)
- print info,v
+ print(str(info)+" "+str(v))
global istep
try:
istep += 1
istep = 0
f='/tmp/value_%s_%05i.txt'%(info,istep)
f=re.sub('\s','_',f)
- print 'Value saved in "%s"'%f
+ print('Value saved in "%s"'%f)
numpy.savetxt(f,v)
.. index:: single: ValueIndexPrinterAndSaver (Observer)
import numpy, re
v=numpy.array(var[-1], ndmin=1)
- print str(info)+" index %i:"%(len(var)-1),v
+ print(str(info)+(" index %i:"%(len(var)-1))+" "+str(v))
global istep
try:
istep += 1
istep = 0
f='/tmp/value_%s_%05i.txt'%(info,istep)
f=re.sub('\s','_',f)
- print 'Value saved in "%s"'%f
+ print('Value saved in "%s"'%f)
numpy.savetxt(f,v)
.. index:: single: ValueSeriePrinterAndSaver (Observer)
import numpy, re
v=numpy.array(var[:], ndmin=1)
- print info,v
+ print(str(info)+" "+str(v))
global istep
try:
istep += 1
istep = 0
f='/tmp/value_%s_%05i.txt'%(info,istep)
f=re.sub('\s','_',f)
- print 'Value saved in "%s"'%f
+ print('Value saved in "%s"'%f)
numpy.savetxt(f,v)
.. index:: single: ValueGnuPlotter (Observer)
::
- print info, var[-1]
+ print(str(info)+" "+str(var[-1]))
import numpy, Gnuplot
v=numpy.array(var[-1], ndmin=1)
global ifig,gp
::
- print info, var[:]
+ print(str(info)+" "+str(var[:]))
import numpy, Gnuplot
v=numpy.array(var[:], ndmin=1)
global ifig,gp
::
- print info, var[-1]
+ print(str(info)+" "+str(var[-1]))
import numpy, re
v=numpy.array(var[-1], ndmin=1)
global istep
istep = 0
f='/tmp/value_%s_%05i.txt'%(info,istep)
f=re.sub('\s','_',f)
- print 'Value saved in "%s"'%f
+ print('Value saved in "%s"'%f)
numpy.savetxt(f,v)
import Gnuplot
global ifig,gp
::
- print info, var[:]
+ print(str(info)+" "+str(var[:]))
import numpy, re
v=numpy.array(var[:], ndmin=1)
global istep
istep = 0
f='/tmp/value_%s_%05i.txt'%(info,istep)
f=re.sub('\s','_',f)
- print 'Value saved in "%s"'%f
+ print('Value saved in "%s"'%f)
numpy.savetxt(f,v)
import Gnuplot
global ifig,gp
::
import numpy
- print info, numpy.nanmean(var[-1])
+ print(str(info)+" "+str(numpy.nanmean(var[-1])))
.. index:: single: ValueStandardError (Observer)
::
import numpy
- print info, numpy.nanstd(var[-1])
+ print(str(info)+" "+str(numpy.nanstd(var[-1])))
.. index:: single: ValueVariance (Observer)
::
import numpy
- print info, numpy.nanvar(var[-1])
+ print(str(info)+" "+str(numpy.nanvar(var[-1])))
.. index:: single: ValueL2Norm (Observer)
import numpy
v = numpy.matrix( numpy.ravel( var[-1] ) )
- print info, float( numpy.linalg.norm(v) )
+ print(str(info)+" "+str(float( numpy.linalg.norm(v) )))
.. index:: single: ValueRMS (Observer)
import numpy
v = numpy.matrix( numpy.ravel( var[-1] ) )
- print info, float( numpy.sqrt((1./v.size)*(v*v.T)) )
+ print(str(info)+" "+str(float( numpy.sqrt((1./v.size)*(v*v.T)) )))