示例#1
0
 /// <summary>
 /// Loads this forcefield from XML file.
 /// </summary>
 /// <param name="context">Load context.</param>
 /// <param name="node">Node from which to load forcefield.</param>
 public void Load(LoadContext context, XmlNode node)
 {
     //TODO add representations & configurations.
     //grab a python path, so we can specify environments.
     pythonHome = Helper.ResolvePath(Helper.GetAttributeValue(node, "PythonHome", ""));
     modelPath  = Helper.ResolvePath(Helper.GetAttributeValue(node, "ModelPath", ""));
     if (modelPath == string.Empty)
     {
         context.Error("Missing field ModelPath", true);
     }
 }