Skip to content

Commit

Permalink
Work around deprecated Representation class
Browse files Browse the repository at this point in the history
  • Loading branch information
benmwebb committed Oct 12, 2018
1 parent 49bdf33 commit 218f11b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion benchmark/benchmark_loop_reconstruction.py
Expand Up @@ -48,7 +48,8 @@ def write(self, txt):
log_objects.append(sw)

m = IMP.Model()
r = representation.Representation(m)
with IMP.allow_deprecated():
r = representation.Representation(m)

hierarchies = {}

Expand Down
3 changes: 2 additions & 1 deletion benchmark/benchmark_replica_exchange.py
Expand Up @@ -21,7 +21,8 @@ def write(self, txt):
PMI 1.0 representation. Creates two particles and
an harmonic distance restraints between them"""
m=IMP.Model()
r=IMP.pmi.representation.Representation(m)
with IMP.allow_deprecated():
r=IMP.pmi.representation.Representation(m)
r.create_component("A")
r.add_component_beads("A",[(1,1),(2,2)])
ps=IMP.atom.get_leaves(r.prot)
Expand Down

0 comments on commit 218f11b

Please sign in to comment.