Skip to content

XPLIT version 53 not supported #4

@ghost

Description

I'm trying to open a xplt file generated by Febio Studio v2.9.0

I've taken your minimal example, and tryed to run it

from febio_python import xplt
data = xplt.Xplt("file.xplt")

And its giving me the following error:

Traceback (most recent call last):
  File "/home/user/projects/feb/feb_py.py", line 2, in <module>
    data = xplt.Xplt("file.xplt")
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/user/projects/feb/febio-python/febio_python/xplt/xplt_object.py", line 32, in __init__
    xplt_mesh, states = read_xplt(filepath)
                        ^^^^^^^^^^^^^^^^^^^
  File "/home/user/projects/feb/febio-python/febio_python/xplt/xplt_parser/read_xplt.py", line 77, in read_xplt
    version = check_fileversion(bf, verbose)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/user/projects/feb/febio-python/febio_python/xplt/xplt_parser/read_xplt.py", line 37, in check_fileversion
    raise ValueError(
ValueError: Incorrect XPLIT file version: 53, expected version: 5 or [8 or 49]

=> Febio is outputting a xplt file at version 53, febio-python is currently able to read 5-8-49 xplt version
I do not have enough former experience with febio format file to submit a functional patch myself
Is that something you'd be interested in looking into?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions