mirror of
https://github.com/fjosw/pyerrors.git
synced 2025-06-30 00:39:27 +02:00
Merge branch 'develop' into documentation
This commit is contained in:
commit
b67b5495e2
2 changed files with 21 additions and 19 deletions
|
@ -2,6 +2,10 @@
|
||||||
|
|
||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
|
|
||||||
|
## [2.8.2] - 2023-06-02
|
||||||
|
### Fixed
|
||||||
|
- Another bug appearing in an edge case of `_compute_drho` fixed.
|
||||||
|
|
||||||
## [2.8.1] - 2023-06-01
|
## [2.8.1] - 2023-06-01
|
||||||
### Fixed
|
### Fixed
|
||||||
- `input.pandas` can now deal with columns that only have `None` entries.
|
- `input.pandas` can now deal with columns that only have `None` entries.
|
||||||
|
|
|
@ -286,9 +286,9 @@ def _make_pattern(version, name, noffset, wf, wf2, b2b, quarks):
|
||||||
def _find_correlator(file_name, version, pattern, b2b, silent=False):
|
def _find_correlator(file_name, version, pattern, b2b, silent=False):
|
||||||
T = 0
|
T = 0
|
||||||
|
|
||||||
file = open(file_name, "r")
|
with open(file_name, "r") as my_file:
|
||||||
|
|
||||||
content = file.read()
|
content = my_file.read()
|
||||||
match = re.search(pattern, content)
|
match = re.search(pattern, content)
|
||||||
if match:
|
if match:
|
||||||
if version == "0.0":
|
if version == "0.0":
|
||||||
|
@ -304,10 +304,8 @@ def _find_correlator(file_name, version, pattern, b2b, silent=False):
|
||||||
print(T, 'entries, starting to read in line', start_read)
|
print(T, 'entries, starting to read in line', start_read)
|
||||||
|
|
||||||
else:
|
else:
|
||||||
file.close()
|
|
||||||
raise ValueError('Correlator with pattern\n' + pattern + '\nnot found.')
|
raise ValueError('Correlator with pattern\n' + pattern + '\nnot found.')
|
||||||
|
|
||||||
file.close()
|
|
||||||
return start_read, T
|
return start_read, T
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue