From 7e48359c11d42641caaa8078136eef4b9e08ae24 Mon Sep 17 00:00:00 2001
From: GUBAIDULIN <vadim.gubaidulin@synchrotron-soleil.fr>
Date: Tue, 17 Sep 2024 13:12:40 +0200
Subject: [PATCH] warning message typo

---
 mbtrack2/tracking/beam_ion_effects.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mbtrack2/tracking/beam_ion_effects.py b/mbtrack2/tracking/beam_ion_effects.py
index 167b15d..da354ba 100644
--- a/mbtrack2/tracking/beam_ion_effects.py
+++ b/mbtrack2/tracking/beam_ion_effects.py
@@ -431,7 +431,7 @@ class BeamIonElement(Element):
 
         if self.ion_beam_monitor_name:
             warnings.warn(
-                'BeamIonMonitor.ion_beam_monitor_name.close() should be called at the end of tracking',
+                'BeamIonMonitor.beam_monitor.close() should be called at the end of tracking',
                 UserWarning,
                 stacklevel=2)
             self.beam_monitor = IonMonitor(
-- 
GitLab