SteveDoyle2 / pyNastran

A Python-based interface tool for Nastran's file formats
Other
384 stars 147 forks source link

Reading Optistruct op2: unknown version=b'OS2023' #765

Closed amarpeshave closed 5 months ago

amarpeshave commented 5 months ago

Hello,

I am trying to read-in an op2 file generated by Optistruct 2023 (attached). The code snippet wherein op2 read-attempt is performed is given below:

from pyNastran.op2.op2 import OP2
results = OP2()
results.read_op2(op2_FilePath)

I've tried setting the results.mode to "optistruct" and using the inbuilt method results.set_mode("optistruct"). Following error is encountered: unknown version=b'OS2023'.

let me know if you need more information.

Cheers, Amar

optistruct.zip

amarpeshave commented 5 months ago

Hello,

Forgot to mention, using pynastran version 1.4.0.

Cheers, Amar

SteveDoyle2 commented 5 months ago

The fix has been pushed to main. The bug fix will be in the release, hopefully this week.

amarpeshave commented 5 months ago

Thanks a bunch Steve!