From c5f85b261899187bfec57d070342b6aa3430e5dd305c8a64a7f1be31f92b6fca Mon Sep 17 00:00:00 2001 From: PioApocalypse Date: Mon, 9 Feb 2026 15:04:35 +0100 Subject: [PATCH] Layer.__init__: ValueError on num.of pulses is fatal, not warning error message changed accordingly --- src/chained_requests.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/chained_requests.py b/src/chained_requests.py index afede67..b7f562c 100644 --- a/src/chained_requests.py +++ b/src/chained_requests.py @@ -44,9 +44,9 @@ class Layer: except ValueError: # Since number_of_pulses is required, if it can't be calculated raise error: raise ValueError(""" - Warning: either Duration or Repetition Rate are empty or invalid. - If you think this is an error, please edit your eLabFTW entry and retry. - Setting Number of Pulses to NoneType. + Fatal: either Duration or Repetition Rate are empty or invalid. + This has to be an error, since these fields are required by the NeXus standard. + Please edit your eLabFTW entry and retry. """) # TO-DO: remove trailing space on eLabFTW's template for deposition layers self.temperature = self.extra["Heater temperature "]["value"] # TYPO: trailing space, must fix on elabftw