From 7e9f468d633b54d356c136fdf1f0ea765d33279d Mon Sep 17 00:00:00 2001 From: zigur Date: Wed, 7 Jul 2021 15:58:44 +0100 Subject: [PATCH] coerce identifiers to strings #402 --- isatools/isatab.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/isatools/isatab.py b/isatools/isatab.py index 1e85dd6e..84726f83 100644 --- a/isatools/isatab.py +++ b/isatools/isatab.py @@ -4771,7 +4771,7 @@ def get_comments_row(cols, row): if len(df_dict['investigation'].index) > 0: row = df_dict['investigation'].iloc[0] - investigation.identifier = row['Investigation Identifier'] + investigation.identifier = str(row['Investigation Identifier']) investigation.title = row['Investigation Title'] investigation.description = row['Investigation Description'] investigation.submission_date = \ @@ -4786,7 +4786,7 @@ def get_comments_row(cols, row): for i in range(0, len(df_dict['studies'])): row = df_dict['studies'][i].iloc[0] study = Study() - study.identifier = row['Study Identifier'] + study.identifier = str(row['Study Identifier']) study.title = row['Study Title'] study.description = row['Study Description'] study.submission_date = row['Study Submission Date']