umvarma / pynastran

Automatically exported from code.google.com/p/pynastran
1 stars 0 forks source link

KeyError: 'unnamed' matrix in Cython OP4 reader #102

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Make sure you attach a *small* sample file if you have it.  Otherwise, it's
almost impossible to debug a problem.

What is the expected output? What do you see instead?
python test_loadop4.py 
=============================================================
test/mat_b_dn.op4
    Name      nRow  nCol     nStr     nNnz  T Fr Dg    Offset
 1. unnamed     10    10        0        0 RD  6  0         0
 2. unnamed      5     7        0        0 RD  2  0       340
 3. unnamed      4     4        0        0 RS  1  0       656
 4. unnamed      4     4        0        0 RD  1  0       856
 5. unnamed      4     4        0        0 CS  1  0      1124
 6. unnamed      4     4        0        0 CD  1  0      1388
 7. unnamed      3     3        0        0 RD  6  0      1784
 8. unnamed     30    20        0        0 RS  2  0      1844
 9. unnamed      5     5        0       25 CD  6  0      3980
Traceback (most recent call last):
  File "test_loadop4.py", line 34, in <module>
    Format,A = matrices[Name]
KeyError: 'unnamed'

What steps will reproduce the problem?
1. Install r965 
2. Run test_loadop4.py
3.

What version of the product are you using? On what operating system?  Note:
if you're using a development version, the __version__ parameter is not
accurate.  What version did you checkout from subversion?

Please provide any additional information below.

Original issue reported on code.google.com by nils...@googlemail.com on 11 Aug 2012 at 6:49

GoogleCodeExporter commented 9 years ago
strange, i thought that bug only affected windows and was fixed.  are you sure 
you built the latest cython source?  If not, run pyNastran/op4/make

also note:  the pure python version has been more robust at running on 
different platforms.  i suggest trying that if the rebuild doesn't work.

Original comment by mesheb82 on 11 Aug 2012 at 7:02

GoogleCodeExporter commented 9 years ago
Sorry for the delay.
Works for me after rebuild.
Ticket can be closed.

Original comment by nils...@googlemail.com on 25 Aug 2012 at 3:43

GoogleCodeExporter commented 9 years ago

Original comment by mesheb82 on 10 May 2013 at 1:52