From 451b5555394bfa8a3060526059d5e810bce6c7e5 Mon Sep 17 00:00:00 2001 From: Ruben Verweij Date: Fri, 24 Aug 2018 11:58:35 +0200 Subject: [PATCH] Fix formatting error --- nd2reader/common_raw_metadata.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/nd2reader/common_raw_metadata.py b/nd2reader/common_raw_metadata.py index 21f9a78..a195563 100644 --- a/nd2reader/common_raw_metadata.py +++ b/nd2reader/common_raw_metadata.py @@ -88,11 +88,10 @@ def determine_sampling_interval(duration, loop): avg_interval_set = avg_interval is not None and avg_interval > 0 if round(avg_interval) != round(interval) and avg_interval_set: - warnings.warn("Reported average frame interval (%.1f ms) doesn't" + - "match the set interval (%.1f ms)." + - "Using the average now." % (avg_interval, - interval), - RuntimeWarning) + message = ("Reported average frame interval (%.1f ms) doesn't" + " match the set interval (%.1f ms). Using the average" + " now.") + warnings.warn(message % (avg_interval, interval), RuntimeWarning) interval = avg_interval if interval is None or interval <= 0: