FireDynamics / FireDynamics/propti

utf-8 can't decode

Open
#94 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
17
Forks
127
PR merge metrics
No merged PRs in 30d

Description

Hey, dear developer, an error occurred when I tried to do the preparation.

I also tried to do the inverse modeling with FDS, and I used Python for quite a while. Can I do something for this framework?

To be honest, I wrote Python script for quite a while, but it was really hard for me to understand your script. Maybe I should do something more.
```
D:\10-programming\Python-s\propti-master\examples\cone_01> python ../../propti_prepare.py input.py
root : INFO reading input file: input.py
Traceback (most recent call last):
File "../../propti_prepare.py", line 35, in
ver = pr.Version(setups[0])
File "D:\10-programming\Python-s\propti-master\propti\data_structures.py", line 766, in __init__
self.ver_exec = self.exec_versionCall(setup.model_executable)
File "D:\10-programming\Python-s\propti-master\propti\data_structures.py", line 819, in exec_versionCall
line = proc.stdout.readline().decode("utf-8")
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb2 in position 6: invalid start byte
```
This line 819 should be changed to:
`line = proc.stdout.readline().decode("utf-8", "ignore")`

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.