'instancemethod' object has no attribute '__getitem__'
Hi
I want to run this code but the error ''instancemethod' object has no attribute '__getitem__'' occure.
How can I fix this?
my script
readParamsFromT
from yade.params.table import *
from yade import polyhedra_
polyMat = PolyhedraMat(
O.materials.
t=polyhedra_
t.state.pos = (1,1,6)
t.state.vel = (0, 0, -20)
O.bodies.append(t)
O.bodies.
O.materials.
partCloud = pack.SpherePack()
#Specify the property of the particle cloud wanted
O.bodies.
#send to simulation assigning the material
partCloud.
triax=TriaxialS
O.engines=[
ForceResetter(),
InsertionSor
InteractionLoop(
[
[
[Law2_
),GlobalStif
triax,
NewtonIntegr
# call the checkUnbalanced function (defined below) every 2 seconds
PyRunner(
# call the addPlotData function every 200 steps
PyRunner(
]
O.dt=.5*
# enable energy tracking; any simulation parts supporting it
# can create and update arbitrary energy types, which can be
# accessed as O.energy[
O.trackEnergy=True
# if the unbalanced forces goes below .05, the packing
# is considered stabilized, therefore we stop collected
# data history and stop
def checkUnbalanced():
if unbalancedForce
O.pause()
plot.
# plot.saveGnuplo
# collect history of data which will be plotted
def addPlotData():
plot.
i=
totalEner
plot.plots=
plot.plot()
O.saveTmp()
O.run()
from yade import qt
v=qt.View()
v.axes=True
Question information
- Language:
- English Edit question
- Status:
- Expired
- For:
- Yade Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply: