Commit 7008f4ff authored by Tiago Peixoto's avatar Tiago Peixoto
Browse files

blockmodel: fix copying with new graph

parent 2f049ff6
...@@ -446,7 +446,7 @@ class BlockState(object): ...@@ -446,7 +446,7 @@ class BlockState(object):
if numpy.any(idx): if numpy.any(idx):
self.epsilon[i] = abs(self.rec[i].a[idx]).min() / 10 self.epsilon[i] = abs(self.rec[i].a[idx]).min() / 10
self.bfield = g.new_vp("vector<double>") if bfield is None else bfield self.bfield = g.new_vp("vector<double>") if bfield is None else self.g.own_property(bfield)
if self.bfield.value_type() != "vector<double>": if self.bfield.value_type() != "vector<double>":
raise ValueError("'bfield' property map must be of type 'vector<double>'") raise ValueError("'bfield' property map must be of type 'vector<double>'")
if Bfield is None: if Bfield is None:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment