Skip to content

Commit

Permalink
added encoding to import_suppfiles.py
Browse files Browse the repository at this point in the history
  • Loading branch information
tpall committed Oct 13, 2023
1 parent f1c15ee commit 8ed86c8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/import_suppfiles.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import numbers
import warnings
import os
import re
import gzip
Expand All @@ -8,8 +10,6 @@
import pandas as pd
import numpy as np
from pandas.api.types import is_string_dtype
import numbers
import warnings


class FormatError(Exception):
Expand Down Expand Up @@ -417,5 +417,5 @@ def single_true(iterable):

df = parse_suppfiles(**args.__dict__)

with open(args.out, "w") as f:
with open(args.out, "w", encoding="utf-8") as f:
df.reset_index(level="id").to_csv(f, index=False)

0 comments on commit 8ed86c8

Please sign in to comment.