Hi,
I'm using python 3.5, pyNastran 7.2, and msc nastran.
I can read in an op2 file, but then I cannot get the eigenvectors out or even get stats without an error.
This is the error I get when I try for stats:
>>> print(model.get_op2_stats())
{1: type=RealSPCForcesArray ntimes=10 nnodes=646
data: [t1, t2, t3, r1, r2, r3] shape=[10, 646, 6] dtype=float32
gridTypes
modes = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
eigrs = [84.09542846679688, 192.75697326660156, 194.0482940673828, 392.6983947753906, 395.2553405761719, 403.5948791503906, 2728.04248046875, 4349.8525390625, 4364.28125, 5048.0146484375]
mode_cycles = [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]
}
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/bleyde/anaconda3/lib/python3.5/site-packages/pyNastran/op2/op2_f06_common.py", line 608, in get_op2_stats
try:
File "/home/bleyde/anaconda3/lib/python3.5/site-packages/pyNastran/op2/op2_f06_common.py", line 601, in compare
return key[0]
IndexError: invalid index to scalar variable.
You can see the data is in there... but then the code breaks.
When I try to get the eigenvectors, this happens:
>>> eigs = model.eigenvectors[1]
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
KeyError: 1
Attached is the op2 file I'm loading.
Thanks,
Sam