problem – Liest XML-Dateien mit Versuchsparametern
File reader for XML problem files.
-
class problem.ProblemReader(filename)
-
exponent
- The potential’s exponent.
-
gamma
- Friction coefficient.
-
magnets
- Dictionary of magnet properties.
-
parameters
- Plot parameters.
-
read(filename)
- Reads the problem’s XML file.
-
read_magnets(tree)
- Read the magnet constellation within tree.
-
read_params(tree)
- Reads the plot parameters within tree.
-
values_for_tag(tree, tagname)
- Returns a dictionary for attributes and their (float) values of
tag tagname in the XML tree tree.