atsim.potentials.config._configuration

Module Contents

Classes

Configuration() Factory class that allows Tabulation objects to be built from .ini files
class atsim.potentials.config._configuration.Configuration[source]

Bases: object

Factory class that allows Tabulation objects to be built from .ini files

read(self, fp)[source]

Read potential data from the file object fp and return a PairTabulation or EAMTabulation object.

Params fp:File like object containing potential information.
Returns:Tabulation object
read_from_parser(self, cp)[source]

Read potential data from the ConfigParser object cp and return a PairTabulation or EAMTabulation instance.

Parameters:cp – atsim.potentials.config.ConfigParser instance.
Returns:Tabulation object