Commit a11fa39a authored by Dworatzyk, Katharina's avatar Dworatzyk, Katharina Committed by Hueser, Christian (FWCC) - 138593
Browse files

Specify encoding when importing (meta)data

parent 55fc9bc0
......@@ -171,12 +171,12 @@ def analyze(survey_data: click.Path) -> None:
# Load the metadata
logging.info(f"Attempt to load metadata from {settings.METADATA}")
with settings.METADATA.open(mode="r") as metadata_io_stream:
with settings.METADATA.open(mode="r", encoding="utf-8") as metadata_io_stream:
metadata_yaml = yaml.safe_load(metadata_io_stream)
raw_data.load_metadata(metadata_yaml)
# Load the actual survey data
with survey_data.open(mode="r") as data_io_stream:
with survey_data.open(mode="r", encoding="utf-8") as data_io_stream:
csv_reader = reader(data_io_stream)
raw_data.load_survey_data(csv_data=list(csv_reader))
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment