From d1b617e4ff7d4a37397861163e2cc5779ec981ba Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 24 May 2022 10:31:23 +0000 Subject: [PATCH 1/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- tests/test_read.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/test_read.py b/tests/test_read.py index bf593ab..62fc3ce 100644 --- a/tests/test_read.py +++ b/tests/test_read.py @@ -86,9 +86,7 @@ def test_btl_is_dataframe(btl): def test_btl_with_dup_cols(btl_as_stream): - assert all( - col in btl_as_stream.columns for col in ["Bottle", "Bottle_"] - ) + assert all(col in btl_as_stream.columns for col in ["Bottle", "Bottle_"]) def test_btl_as_stringio(btl_as_stream): From 180f761dd0e645b3452b85cb4088f56e3ebd8153 Mon Sep 17 00:00:00 2001 From: Patrick Upson Date: Wed, 25 May 2022 18:37:45 -0300 Subject: [PATCH 2/2] Update ctd/read.py Co-authored-by: Filipe --- ctd/read.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ctd/read.py b/ctd/read.py index 7d00a13..e809736 100644 --- a/ctd/read.py +++ b/ctd/read.py @@ -181,7 +181,7 @@ def _parse_seabird(lines, ftype): names.append("Statistic") metadata.update( { - "name": fname if fname else "default_file", + "name": fname if fname else "unknown", "header": "\n".join(header), "config": "\n".join(config), "names": _remane_duplicate_columns(names),