Closed Jintram closed 12 years ago
This should be easily fixed by exchanging the order of defining self.structure2D and self.structure3D in testMixedPair2D3D and calling the initializer of testPair, i.e.:
def __init__(self, single2D, single3D):
if __debug__:
assert isinstance(single2D.structure, PlanarSurface)
assert isinstance(single3D.structure, CuboidalRegion)
# for clarity:
self.structure2D = single2D.structure # equal to self.structure1
self.structure3D = single3D.structure # equal to self.structure2
testPair.__init__(self, single2D, single3D)
# note: this makes self.single1/self.pid_particle_pair1/self.structure1 for the 2D particle
# and self.single2/self.pid_particle_pair2/self.structure2 for the 3D particle
Done
310 class testMixedPair2D3D(testPair):
311
312 def __init__(self, single2D, single3D):
313
314 # First define
315 # for clarity:
316 self.structure2D = single2D.structure # equal to self.structure1
317 self.structure3D = single3D.structure # equal to self.structure2
318
319 # These methods need above definitions.
320 if __debug__:
321 assert isinstance(single2D.structure, PlanarSurface)
322 assert isinstance(single3D.structure, CuboidalRegion)
323 testPair.__init__(self, single2D, single3D)
324 # note: this makes self.single1/self.pid_particle_pair1/self.structure1 for the 2D particle
325 # and self.single2/self.pid_particle_pair2/self.structure2 for the 3D particle
Seems to work.
Have a script with reaction network that allows for reactions between particles in membrane and in bulk. Get the following error message:
[Incorrect remark; but fixed bug, see below.]