• Facebook
  • Twitter
  • Reddit
  • StumbleUpon
  • Digg
  • email

All Samples(848)  |  Call(813)  |  Derive(0)  |  Import(35)
atof(s) -> float

Return the floating point number represented by the string s.

        def atof(s):
    """atof(s) -> float

    Return the floating point number represented by the string s.

    """
    return _float(s)
        


src/m/a/matplotlib-HEAD/py4science/book/examples/WindowLevelInterface.py   matplotlib(Download)
    def SetWindow(self,window):
        if string.atoi(self.getvar('video')):
            self.viewer.SetColorWindow(-string.atof(window))
        else:
            self.viewer.SetColorWindow(string.atof(window))
        self.viewer.Render()
 
    def SetLevel(self,level):
        self.viewer.SetColorLevel(string.atof(level))
        self.viewer.Render()
 
    def SetInverseVideo(self):
        if string.atoi(self.getvar('video')):
            self.viewer.SetColorWindow(-string.atof(self.getvar('window')))
    def SetInverseVideo(self):
        if string.atoi(self.getvar('video')):
            self.viewer.SetColorWindow(-string.atof(self.getvar('window')))
        else:
            self.viewer.SetColorWindow(string.atof(self.getvar('window')))
        self.viewer.Render()
 

src/m/a/matplotlib-HEAD/course/examples/WindowLevelInterface.py   matplotlib(Download)
    def SetWindow(self,window):
        if string.atoi(self.getvar('video')):
            self.viewer.SetColorWindow(-string.atof(window))
        else:
            self.viewer.SetColorWindow(string.atof(window))
        self.viewer.Render()
 
    def SetLevel(self,level):
        self.viewer.SetColorLevel(string.atof(level))
        self.viewer.Render()
 
    def SetInverseVideo(self):
        if string.atoi(self.getvar('video')):
            self.viewer.SetColorWindow(-string.atof(self.getvar('window')))
    def SetInverseVideo(self):
        if string.atoi(self.getvar('video')):
            self.viewer.SetColorWindow(-string.atof(self.getvar('window')))
        else:
            self.viewer.SetColorWindow(string.atof(self.getvar('window')))
        self.viewer.Render()
 

src/n/l/nlpy-HEAD/trunk/nlpy/Examples/bmark_ma27.py   nlpy(Download)
import pyma27
from pysparse import spmatrix
import numpy
from string import strip, atof
from nlpy_timing import cputime
 
def SolveSystem( A, rhs ):
        line = line.split()
        pbname = strip( line[0] )
	if pbname[-4:] == '.mtx': pbname = pbname[:-4]
        analyze_f77[pbname] = atof(line[1])
        solve_f77[pbname] = atof(line[2])
 
    try:
        line = line.split()
        pbname = strip( line[0] )
	if pbname[-4:] == '.mtx': pbname = pbname[:-4]
        analyze_c[pbname] = atof(line[1])
        solve_c[pbname] = atof(line[2])
 
    # Plot the timings

src/t/o/Toolserver-0.4.1/samples/ServerManager.py   Toolserver(Download)
import hashlib
from xml.sax.handler import ContentHandler
from thread import allocate_lock
from string import atof, atoi
 
from Toolserver.Tool import registerTool
from Toolserver.CRAMUtils import OnlyRPCCRAMTool
		(load1, load5, load15, processes, maxpid) = file.readline().split()
		file.close()
		return [self._createToken(),
			atof(load1), atof(load5), atof(load15),
			processes, atoi(maxpid)
		]
 
		(uptime1, uptime2) = file.readline().split()
		file.close()
		return [self._createToken(),
			atof(uptime1), atof(uptime2)
		]
 
	uptime_signature = ('typens:listResult', 'typens:cramToken')

src/n/l/nlpy-HEAD/nlpy/Examples/bmark_ma27.py   nlpy(Download)
import pyma27
from pysparse import spmatrix
import numpy
from string import strip, atof
from nlpy_timing import cputime
 
def SolveSystem( A, rhs ):
        line = line.split()
        pbname = strip( line[0] )
	if pbname[-4:] == '.mtx': pbname = pbname[:-4]
        analyze_f77[pbname] = atof(line[1])
        solve_f77[pbname] = atof(line[2])
 
    try:
        line = line.split()
        pbname = strip( line[0] )
	if pbname[-4:] == '.mtx': pbname = pbname[:-4]
        analyze_c[pbname] = atof(line[1])
        solve_c[pbname] = atof(line[2])
 
    # Plot the timings

src/p/l/plplot-HEAD/trunk/examples/python/tutor.py   plplot(Download)
		x = []
		data = string.split(lines[0])
		for num in data:
			x.append(string.atof(num))
 
		y = []
		del lines[0]
		for line in lines:
			yy = []
			data = string.split(line)
			for num in data:
				yy.append(string.atof(num))

src/p/l/plplot-HEAD/examples/python/tutor.py   plplot(Download)
		x = []
		data = string.split(lines[0])
		for num in data:
			x.append(string.atof(num))
 
		y = []
		del lines[0]
		for line in lines:
			yy = []
			data = string.split(line)
			for num in data:
				yy.append(string.atof(num))

src/n/l/nlpy-HEAD/trunk/nlpy/Examples/demo_pygltr.py   nlpy(Download)
from nlpy_timing import cputime
import sys
import os
from   string import strip, atof
 
def SpecSheet():
    """
        k = strip( f90probs[i] )
        if k[-4:] == '.mtx':
            k = k[:-4]
        t = atof( f90tmgs[i] )
        t_Fortran_ref[k] = t
 
    #try:

src/n/l/nlpy-HEAD/nlpy/Examples/demo_pygltr.py   nlpy(Download)
from nlpy_timing import cputime
import sys
import os
from   string import strip, atof
 
def SpecSheet():
    """
        k = strip( f90probs[i] )
        if k[-4:] == '.mtx':
            k = k[:-4]
        t = atof( f90tmgs[i] )
        t_Fortran_ref[k] = t
 
    #try:

src/c/a/cantera-HEAD/language_interfaces/python/examples/flames/fixed_T_flame.py   cantera(Download)
from Cantera import *
from Cantera.OneD import *
from Cantera.OneD.BurnerFlame import BurnerFlame
from string import atof
 
 
# read temperature vs. position data from a file.
        else:
            try:
                zval, tval = line.split(',')
                z.append(atof(zval))
                t.append(atof(tval))
            except:
                pass

  1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9  Next