diff --git a/.zenodo.json b/.zenodo.json index 5c3aacd77..693dde392 100644 --- a/.zenodo.json +++ b/.zenodo.json @@ -78,6 +78,11 @@ "affiliation": "Basque Center on Cognition, Brain and Language", "orcid": "0000-0002-2553-3327" }, + { + "name": "Molfese, Peter", + "affiliation": "National Institutes of Mental Health, CMN", + "orcid": "0000-0002-3045-9408" + }, { "name": "Salo, Taylor", "affiliation": "Florida International University", diff --git a/tedana/io.py b/tedana/io.py index 112e4401d..d5a82892b 100644 --- a/tedana/io.py +++ b/tedana/io.py @@ -265,7 +265,14 @@ def save_tsv(self, data, name): data_type = type(data) if not isinstance(data, pd.DataFrame): raise TypeError(f"data must be pd.Data, not type {data_type}.") - data.to_csv(name, sep="\t", line_terminator="\n", na_rep="n/a", index=False) + if versiontuple(pd.__version__) >= versiontuple("1.5.2"): + data.to_csv(name, sep="\t", lineterminator="\n", na_rep="n/a", index=False) + else: + data.to_csv(name, sep="\t", line_terminator="\n", na_rep="n/a", index=False) + + +def versiontuple(v): + return tuple(map(int, (v.split(".")))) def get_fields(name):