PSCF v1.1
Classes | Functions
pscfpp.field Namespace Reference

Module for parsing field files. More...

Classes

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

Functions

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

Detailed Description

Module for parsing field files.

Function Documentation

◆ getValue()

def 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().