Skip to content

mismatching array sizes when reading element_solid_history_variables #63

Open
@jakobstanford

Description

@jakobstanford

🐛 Describe the bug
I am trying to read element_solid_history_variables from my *.ptf files, but when I'm calling D3plot() with state_array_filter or state_filter, I get get an error.

🔢 To Reproduce

  1. take any .ptf file (d3plot files seem to work)
  2. run the following script:
from lasso.dyna import D3plot, ArrayType, FilterType
res = D3plot('GM108.ptf', state_array_filter=[ArrayType.element_solid_history_variables])
  1. get this error message:
    ValueError: could not broadcast input array from shape (522,5913,1,11) into shape (522,5913,1,5)

💘 Expected behavior
Function call works without throwing an error message.

🖥️ Setup

  • lasso-python version: 2.0.2
  • OS: Win11 x64, but also occurs on Linux.

ℹ️ Additional context
My current workaround is to call D3plot() without arguments. I can then read out the array as expected, but the issue is that this doesn't work with the rest of my infrastructure, where I can only read a set of timesteps at a time.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions