fluiddyn / fluidfoam

OpenFoam postprocessing python tool
GNU General Public License v3.0
156 stars 50 forks source link

parsing failure for binary boundary data #60

Open kahilah opened 2 weeks ago

kahilah commented 2 weeks ago

Hi,

I had a dataset which happened to have "}". ")" byte strings within the nonuniform binary data block for the patch. Such a happenstance leads to an unexpected exit of parsing in _parse_session(self, title) function, yielding later exceptions as well.

Unfortunately I was not able to reproduce the problem in any simple data sets I have available but still wanted to share the behavior here.

CyrilleBonamy commented 2 weeks ago

Hello @kahilah Thank you for your interest in fluidfoam and for opening this issue. Is it possible to have an example file (even a large one) to reproduce the problem? Thank you

kahilah commented 1 week ago

Hi, I handcrafted a file including a boundary patch which fails with error TypeError: 'bytes' object does not support item assignment

File attached

Urandomised.tar.gz