Loading lib/galaxy/datatypes/binary.py +3 −5 Original line number Diff line number Diff line Loading @@ -4135,10 +4135,8 @@ class Npz(CompressedArchive): def sniff(self, filename: str) -> bool: try: npz = np.load(filename) if isinstance(npz, np.lib.npyio.NpzFile): for f in npz.files: if isinstance(npz[f], np.ndarray): with np.load(filename) as npz: if isinstance(npz, np.lib.npyio.NpzFile) and any(f.filename.endswith(".npy") for f in npz.zip.filelist): return True except Exception: return False Loading Loading
lib/galaxy/datatypes/binary.py +3 −5 Original line number Diff line number Diff line Loading @@ -4135,10 +4135,8 @@ class Npz(CompressedArchive): def sniff(self, filename: str) -> bool: try: npz = np.load(filename) if isinstance(npz, np.lib.npyio.NpzFile): for f in npz.files: if isinstance(npz[f], np.ndarray): with np.load(filename) as npz: if isinstance(npz, np.lib.npyio.NpzFile) and any(f.filename.endswith(".npy") for f in npz.zip.filelist): return True except Exception: return False Loading