From e0db37c98641fe435a37648b828063d647794a7c Mon Sep 17 00:00:00 2001 From: Bas des Tombe Date: Tue, 22 Aug 2023 21:34:43 +0200 Subject: [PATCH] Please ruff --- src/dtscalibration/datastore.py | 2 +- src/dtscalibration/plot.py | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/dtscalibration/datastore.py b/src/dtscalibration/datastore.py index 9e1449c2..1882aa64 100644 --- a/src/dtscalibration/datastore.py +++ b/src/dtscalibration/datastore.py @@ -155,7 +155,7 @@ def __repr__(self): # print sections vl = [ - "{0:.2f}{2} - {1:.2f}{2}".format(vi.start, vi.stop, unit) + f"{vi.start:.2f}{unit} - {vi.stop:.2f}{unit}" for vi in v ] preamble_new += " and ".join(vl) + "\n" diff --git a/src/dtscalibration/plot.py b/src/dtscalibration/plot.py index 7e487879..13c0c111 100755 --- a/src/dtscalibration/plot.py +++ b/src/dtscalibration/plot.py @@ -630,8 +630,7 @@ def plot_sigma_report( ) else: ax1.set_title( - "Projected uncertainty at t={} compared to standard error " - "in baths".format(itimes) + f"Projected uncertainty at t={itimes} compared to standard error in baths" ) ax1.legend() ax1.set_ylabel(r"Temperature [$^\circ$C]")