mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-09-18 06:17:59 +08:00
More informative out-of-memory error (#644)
* more informative error message: memory error * flake fix
This commit is contained in:
@@ -143,6 +143,9 @@ class ScanpyEngine(CXGDriver):
|
||||
"using `cellxgene prepare`, please run `cellxgene prepare --help` for more "
|
||||
"information."
|
||||
)
|
||||
except MemoryError:
|
||||
raise ScanpyFileError("Error while loading file: out of memory, file is too large"
|
||||
" for memory available")
|
||||
except Exception as e:
|
||||
raise ScanpyFileError(
|
||||
f"Error while loading file: {e}, File must be in the .h5ad format, please check "
|
||||
|
||||
Reference in New Issue
Block a user