From a77eb23a38ec1a661f857d38dd9de74d54a38d82 Mon Sep 17 00:00:00 2001 From: rasmusvt Date: Tue, 16 Aug 2022 11:43:56 +0200 Subject: [PATCH] Make sure e0_diff is loaded as float, not str --- nafuma/xanes/io.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nafuma/xanes/io.py b/nafuma/xanes/io.py index 03e7c88..e73674e 100644 --- a/nafuma/xanes/io.py +++ b/nafuma/xanes/io.py @@ -280,7 +280,7 @@ def load_data(path: str) -> dict: data['e0_diff'] = {} for path, edge_position in zip(data['path'], edge_positions): - data['e0_diff'][path] = edge_position + data['e0_diff'][path] = float(edge_position)