mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-10-04 02:28:11 +08:00
X float16 support (#2406)
* float16 support * fix type checks * PR review comments * add tests for custom json encoder; rename and comment for posterity * lint * typos
This commit is contained in:
committed by
Colin Megill
parent
eaae6df5e3
commit
154d099fef
@@ -15,7 +15,7 @@ from backend.common.errors import (
|
||||
UnsupportedSummaryMethod,
|
||||
DatasetAccessError,
|
||||
)
|
||||
from backend.common.utils.utils import jsonify_numpy
|
||||
from backend.common.utils.utils import jsonify_strict
|
||||
from backend.common.fbs.matrix import encode_matrix_fbs
|
||||
|
||||
|
||||
@@ -336,7 +336,7 @@ class DataAdaptor(metaclass=ABCMeta):
|
||||
)
|
||||
|
||||
try:
|
||||
return jsonify_numpy(result)
|
||||
return jsonify_strict(result)
|
||||
except ValueError:
|
||||
raise JSONEncodingValueError("Error encoding differential expression to JSON")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user