mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-10-02 17:28:12 +08:00
Move jsonification to engine level (#511)
This commit is contained in:
@@ -54,3 +54,7 @@ def whole_number(value):
|
||||
if value < 0:
|
||||
raise ArgumentTypeError(f"{value} is not >= 0")
|
||||
return value
|
||||
|
||||
|
||||
def jsonify_scanpy(data):
|
||||
return json.dumps(data, cls=Float32JSONEncoder, allow_nan=False)
|
||||
|
||||
Reference in New Issue
Block a user