Skip to content

Commit

Permalink
STYLE: Simplify concatenated string in exception message
Browse files Browse the repository at this point in the history
Simplify concatenated string in exception message.
  • Loading branch information
jhlegarreta committed Jul 28, 2024
1 parent 34b1b3d commit f8f1302
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dipy/utils/tractogram.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit f8f1302

Please sign in to comment.