From 93f8f0777d84af002c48a138fb91aa4708f94225 Mon Sep 17 00:00:00 2001 From: Dominic Oram Date: Fri, 6 Sep 2024 17:14:26 +0100 Subject: [PATCH] Fix linting --- src/dodal/devices/util/lookup_tables.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dodal/devices/util/lookup_tables.py b/src/dodal/devices/util/lookup_tables.py index d920aa8eac..bc5cae4d99 100644 --- a/src/dodal/devices/util/lookup_tables.py +++ b/src/dodal/devices/util/lookup_tables.py @@ -27,7 +27,7 @@ async def energy_distance_table(lookup_table_path: str) -> np.ndarray: # Slight cheat to make the file IO async, numpy doesn't do any real IO now, just # decodes the text - async with aiofiles.open(lookup_table_path, "r") as stream: + async with aiofiles.open(lookup_table_path) as stream: raw_table = await stream.read() return loadtxt(StringIO(raw_table), comments=["#", "Units"])