Add custom format for warnings (#477)

[cellxgene] Warning: <message>
This commit is contained in:
Charlotte Weaver
2018-11-28 12:47:11 -08:00
committed by GitHub
parent 00b9a8fa72
commit 455d987398
2 changed files with 8 additions and 1 deletions
+4
View File
@@ -15,6 +15,10 @@ class Float32JSONEncoder(json.JSONEncoder):
return json.JSONEncoder.default(self, obj)
def custom_format_warning(msg, *args, **kwargs):
return f"[cellxgene] Warning: {msg} \n"
def get_mime_type(default="application/json", acceptable_types=["application/json", "text/csv"], query_param=None,
header=None):
mime_type = default