From f8f130269c2a323f2592f44cbd41c0e8833c8015 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jon=20Haitz=20Legarreta=20Gorro=C3=B1o?= Date: Sun, 28 Jul 2024 13:55:26 -0400 Subject: [PATCH] STYLE: Simplify concatenated string in exception message Simplify concatenated string in exception message. --- dipy/utils/tractogram.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dipy/utils/tractogram.py b/dipy/utils/tractogram.py index cecca3e116..0d8a0dd65e 100644 --- a/dipy/utils/tractogram.py +++ b/dipy/utils/tractogram.py @@ -94,7 +94,7 @@ def concatenate_tractogram( ): if not delete_dpv: logging.debug(f"{key} dpv key does not exist in all TrxFile.") - raise ValueError("TrxFile must be sharing identical dpv " "keys.") + raise ValueError("TrxFile must be sharing identical dpv keys.") elif ( ref_trx.data_per_vertex[key]._data.dtype != curr_trx.data_per_vertex[key]._data.dtype @@ -112,7 +112,7 @@ def concatenate_tractogram( ): if not delete_dps: logging.debug(f"{key} dps key does not exist in all TrxFile.") - raise ValueError("TrxFile must be sharing identical dps " "keys.") + raise ValueError("TrxFile must be sharing identical dps keys.") elif ( ref_trx.data_per_streamline[key].dtype != curr_trx.data_per_streamline[key].dtype