From e510110f29b04b005313fe9722187d181c884d99 Mon Sep 17 00:00:00 2001 From: Jonathan Shimwell Date: Thu, 19 Dec 2024 12:02:54 +0100 Subject: [PATCH] corrected multiline string --- src/cad_to_dagmc/core.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/cad_to_dagmc/core.py b/src/cad_to_dagmc/core.py index e350cab..8604d96 100644 --- a/src/cad_to_dagmc/core.py +++ b/src/cad_to_dagmc/core.py @@ -349,9 +349,10 @@ def _check_material_tags(material_tags, iterable_solids): msg = f"material_tags should be an iterable of strings." raise ValueError(msg) if len(material_tag) > 28: - msg = f"Material tag {material_tag} is too long. DAGMC will truncate this - material tag to 28 characters. The resulting tag in the h5m file will be - {material_tag[:28]}" + msg = ( + f"Material tag {material_tag} is too long. DAGMC will truncate this material tag " + f"to 28 characters. The resulting tag in the h5m file will be {material_tag[:28]}" + ) warnings.warn(msg)