tests: remove workaround for empty files

Inactive tables no longer produce an empty file, even if requested
This commit is contained in:
Michele Guerini Rocco 2024-10-09 18:11:51 +02:00 committed by rnhmjoj
parent e5e471725c
commit 10d65c1b8e
Signed by: rnhmjoj
GPG Key ID: BFBAF4C975F76450

View File

@ -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)