Loading [MathJax]/extensions/TeX/AMSsymbols.js
PSCF v1.2
pscfpp.field Namespace Reference

Module for parsing field files. More...

Classes

class  Field
 Container for data in a PSCF field file. More...
 

Functions

 getValue (v)
 Distinguish the correct type of the value from a string.
 

Detailed Description

Module for parsing field files.

Function Documentation

◆ getValue()

pscfpp.field.getValue ( v)

Distinguish the correct type of the value from a string.

This function is a helper function to read a open-file object. It distinguishes the correct type of the value from a string to either integer, float or string.

Return value:

The exact value with the correct type.

Parameters
va string represents a value.

Definition at line 374 of file field.py.

Referenced by pscfpp.field.Field.read().