tests: remove workaround for empty files
Inactive tables no longer produce an empty file, even if requested
This commit is contained in:
parent
e5e471725c
commit
10d65c1b8e
@ -2,7 +2,6 @@ from pathlib import Path
|
|||||||
from typing import Any
|
from typing import Any
|
||||||
from unittest import TestCase
|
from unittest import TestCase
|
||||||
|
|
||||||
import warnings
|
|
||||||
import numpy as np
|
import numpy as np
|
||||||
|
|
||||||
import shutil
|
import shutil
|
||||||
@ -267,7 +266,4 @@ def load_table(fname: Path) -> np.array:
|
|||||||
Loads a GRAY output file as a structured numpy array
|
Loads a GRAY output file as a structured numpy array
|
||||||
(columns are named as in the file header)
|
(columns are named as in the file header)
|
||||||
'''
|
'''
|
||||||
# ignore warnings about empty files
|
|
||||||
with warnings.catch_warnings():
|
|
||||||
warnings.simplefilter("ignore")
|
|
||||||
return np.genfromtxt(fname, names=True, skip_header=21, ndmin=1)
|
return np.genfromtxt(fname, names=True, skip_header=21, ndmin=1)
|
||||||
|
Loading…
Reference in New Issue
Block a user