From 6f99322dc09faf0978a964fb45ab9e4402584814 Mon Sep 17 00:00:00 2001 From: fjosw Date: Tue, 15 Feb 2022 21:34:00 +0000 Subject: [PATCH] Documentation updated --- docs/pyerrors/input/sfcf.html | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/pyerrors/input/sfcf.html b/docs/pyerrors/input/sfcf.html index b3a5a803..4279ba10 100644 --- a/docs/pyerrors/input/sfcf.html +++ b/docs/pyerrors/input/sfcf.html @@ -282,6 +282,7 @@ read = 1 start = k + 1 print(str(T) + " entries found.") + file.close() else: pattern = 'name ' + name + '\nquarks ' + quarks + '\noffset ' + str(noffset) + '\nwf ' + str(wf) if b2b: @@ -301,8 +302,11 @@ T = content[match.start():].count('\n', 0, end_match.start()) - 4 - b2b assert T > 0 print(T, 'entries, starting to read in line', start_read) + file.close() else: + file.close() raise Exception('Correlator with pattern\n' + pattern + '\nnot found.') + # we found where the correlator # that is to be read is in the files # after preparing the datastructure @@ -654,6 +658,7 @@ read = 1 start = k + 1 print(str(T) + " entries found.") + file.close() else: pattern = 'name ' + name + '\nquarks ' + quarks + '\noffset ' + str(noffset) + '\nwf ' + str(wf) if b2b: @@ -673,8 +678,11 @@ T = content[match.start():].count('\n', 0, end_match.start()) - 4 - b2b assert T > 0 print(T, 'entries, starting to read in line', start_read) + file.close() else: + file.close() raise Exception('Correlator with pattern\n' + pattern + '\nnot found.') + # we found where the correlator # that is to be read is in the files # after preparing the datastructure