From e7f42eff02165a7ae3842c3f250420d509913f45 Mon Sep 17 00:00:00 2001
From: Gabriel Studer <gabriel.studer@unibas.ch>
Date: Mon, 2 Mar 2015 11:37:55 +0100
Subject: [PATCH] replace deprecated XCSEditor request

---
 examples/code_fragments/harmony/harmony.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/examples/code_fragments/harmony/harmony.py b/examples/code_fragments/harmony/harmony.py
index 0e1ddc0d4..d9f98316d 100644
--- a/examples/code_fragments/harmony/harmony.py
+++ b/examples/code_fragments/harmony/harmony.py
@@ -4,7 +4,7 @@ from ost import io, geom, gfx, mol
 class World:
   def __init__(self):
     self.atom_string=mol.CreateEntity()
-    edi=self.atom_string.RequestXCSEditor(mol.EditMode.BUFFERED_EDIT)
+    edi=self.atom_string.EditXCS(mol.EditMode.BUFFERED_EDIT)
     chain=edi.InsertChain("A")
     r=edi.AppendResidue(chain, "STRING")
     prev_atom=mol.AtomHandle()
@@ -51,7 +51,7 @@ class World:
         force=((1.0/length)**12-(1.0/length)**6)*diff
         self.forces[i]+=force
         self.forces[j]-=force
-    edi=self.atom_string.RequestXCSEditor(mol.EditMode.BUFFERED_EDIT)
+    edi=self.atom_string.EditXCS(mol.EditMode.BUFFERED_EDIT)
     for force, atom in zip(self.forces, self.atom_string.atoms):
       edi.SetAtomPos(atom, atom.pos+force*0.004)
     self.go.Rebuild()
-- 
GitLab