From 120391740108bf8e9c7758d19debcee1020a97a4 Mon Sep 17 00:00:00 2001 From: Ivan Ivanov Date: Tue, 19 Nov 2024 13:45:09 -0800 Subject: [PATCH] specify encoding to remove BOM --- iohub/rename_wells.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iohub/rename_wells.py b/iohub/rename_wells.py index a6ff018e..c46d0b65 100644 --- a/iohub/rename_wells.py +++ b/iohub/rename_wells.py @@ -38,7 +38,7 @@ def rename_wells(zarr_store_path: str | Path, csv_file_path: str | Path): # read and check csv name_pair_list = [] - with open(csv_file_path, "r") as csv_file: + with open(csv_file_path, mode="r", encoding="utf-8-sig") as csv_file: for row in csv.reader(csv_file): if len(row) != 2: raise ValueError(