You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
with open(base_config) as f:
config = yaml.load(f, Loader=yaml.FullLoader)
if exists(custom_config):
with open(custom_config) as f:
config.update(yaml.load(f, Loader=yaml.FullLoader))
This can lead to encoding issues on some machines.
Leading to an error like this:
yaml.reader.ReaderError: unacceptable character #x009f: special characters are not allowed
I would suggest changing it to
with open(base_config, encoding='utf8') as f:
config = yaml.load(f, Loader=yaml.FullLoader)
if exists(custom_config):
with open(custom_config, encoding='utf8') as f:
config.update(yaml.load(f, Loader=yaml.FullLoader))
Worked for me. Cheers.
The text was updated successfully, but these errors were encountered:
lkstrp
added a commit
to lkstrp/powerplantmatching
that referenced
this issue
Jul 22, 2024
In core.py the config is read by
This can lead to encoding issues on some machines.
Leading to an error like this:
yaml.reader.ReaderError: unacceptable character #x009f: special characters are not allowed
I would suggest changing it to
Worked for me. Cheers.
The text was updated successfully, but these errors were encountered: