From 6f2d96005d3d7628504c52103d521a500632fb24 Mon Sep 17 00:00:00 2001 From: rasmusvt Date: Wed, 16 Mar 2022 15:36:40 +0100 Subject: [PATCH] Fix read_xy() --- beamtime/xrd/io.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/beamtime/xrd/io.py b/beamtime/xrd/io.py index aa9d09a..da45aad 100644 --- a/beamtime/xrd/io.py +++ b/beamtime/xrd/io.py @@ -260,10 +260,10 @@ def read_xy(data, options): with open(data['path'], 'r') as f: position = 0 - + current_line = f.readline() - while current_line[0] == '#' or "\'": + while current_line[0] == '#' or current_line[0] == '\'': position = f.tell() current_line = f.readline()