---------------------------------------------------------------------------
UnicodeDecodeError Traceback (most recent call last)
Cell In[1], line 1
----> 1 sim.oper.get_cells_coords()
File ~/Dev/fluidsimfoam/src/fluidsimfoam/operators.py:39, in Operators.get_cells_coords(self)
31 raise RuntimeError("OpenFOAM not available")
33 run(
34 ["postProcess", "-func", "writeCellCentres"],
35 cwd=self.sim.path_run,
36 stdout=PIPE,
37 )
---> 39 field = VolVectorField.from_path(path_c, skip_boundary_field=True)
40 return field.get_components()
File ~/Dev/fluidsimfoam/src/fluidsimfoam/foam_input_files/fields.py:66, in FieldABC.from_path(cls, path, skip_boundary_field)
62 @classmethod
63 def from_path(cls, path: str or Path, skip_boundary_field=False):
64 path = Path(path)
65 field = cls.from_code(
---> 66 path.read_text(), skip_boundary_field=skip_boundary_field
67 )
68 field.path = path
69 return field
File /usr/lib/python3.9/pathlib.py:1256, in Path.read_text(self, encoding, errors)
1252 """
1253 Open the file in text mode, read it, and close the file.
1254 """
1255 with self.open(mode='r', encoding=encoding, errors=errors) as f:
-> 1256 return f.read()
File /usr/lib/python3.9/codecs.py:322, in BufferedIncrementalDecoder.decode(self, input, final)
319 def decode(self, input, final=False):
320 # decode input (taking the buffer into account)
321 data = self.buffer + input
--> 322 (result, consumed) = self._buffer_decode(data, self.errors, final)
323 # keep undecoded input until the next call
324 self.buffer = data[consumed:]
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x9b in position 894: invalid start byte