DISPATCH
f90nml.fpy Namespace Reference

Functions

def pyfloat (v_str)
 
def pycomplex (v_str)
 
def pybool (v_str, strict_logical=True)
 
def pystr (v_str)
 

Detailed Description

Conversion of Fortran values (as strings) to equivalent Python values.

The functions in this module are used to convert the string representation of
the values of basic Fortran data types into equivalent Python values.

:copyright: Copyright 2014 Marshall Ward, see AUTHORS for details.
:license: Apache License, Version 2.0, see LICENSE for details.

Function Documentation

◆ pybool()

def f90nml.fpy.pybool (   v_str,
  strict_logical = True 
)
Convert string repr of Fortran logical to Python logical.

Definition at line 34 of file fpy.py.

◆ pycomplex()

def f90nml.fpy.pycomplex (   v_str)
Convert string repr of Fortran complex to Python complex.

Definition at line 20 of file fpy.py.

References f90nml.fpy.pyfloat().

◆ pyfloat()

def f90nml.fpy.pyfloat (   v_str)
Convert string repr of Fortran floating point to Python double.

Definition at line 12 of file fpy.py.

Referenced by f90nml.fpy.pycomplex().

◆ pystr()

def f90nml.fpy.pystr (   v_str)
Convert string repr of Fortran string to Python string.

Definition at line 59 of file fpy.py.