mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-10-01 05:38:13 +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 "
|
"using `cellxgene prepare`, please run `cellxgene prepare --help` for more "
|
||||||
"information."
|
"information."
|
||||||
)
|
)
|
||||||
|
except MemoryError:
|
||||||
|
raise ScanpyFileError("Error while loading file: out of memory, file is too large"
|
||||||
|
" for memory available")
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
raise ScanpyFileError(
|
raise ScanpyFileError(
|
||||||
f"Error while loading file: {e}, File must be in the .h5ad format, please check "
|
f"Error while loading file: {e}, File must be in the .h5ad format, please check "
|
||||||
|
|||||||
Reference in New Issue
Block a user