From b8601a6ea5bf6f98213b4d66a83691efcb104b6a Mon Sep 17 00:00:00 2001 From: IanCa Date: Mon, 29 Jul 2024 14:40:20 -0500 Subject: [PATCH] Always save schemas with newlines, never CLRF --- hed/schema/schema_io/ontology_util.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hed/schema/schema_io/ontology_util.py b/hed/schema/schema_io/ontology_util.py index a9b4e668..8d72fda6 100644 --- a/hed/schema/schema_io/ontology_util.py +++ b/hed/schema/schema_io/ontology_util.py @@ -394,7 +394,8 @@ def save_dataframes(base_filename, dataframe_dict): for suffix, dataframe in dataframe_dict.items(): filename = f"{base}_{suffix}.tsv" with open(filename, mode='w', encoding='utf-8') as opened_file: - dataframe.to_csv(opened_file, sep='\t', index=False, header=True, quoting=csv.QUOTE_NONE) + dataframe.to_csv(opened_file, sep='\t', index=False, header=True, + quoting=csv.QUOTE_NONE, lineterminator="\n") def convert_filenames_to_dict(filenames):