Fix small typo, fixes #243
This commit is contained in:
parent
315ee0950b
commit
046c28db97
1 changed files with 1 additions and 1 deletions
|
|
@ -59,7 +59,7 @@ def ndarray_to_json(arr: np.ndarray) -> JSONArrayType:
|
|||
|
||||
|
||||
def json_to_ndarray(json_dict: JSONArrayType):
|
||||
if not json_dict.get("@type") != "ndarray":
|
||||
if json_dict.get("@type") != "ndarray":
|
||||
logging.warning("No valid @type attribute found. Conversion may fail.")
|
||||
for required_param in ("dtype", "shape", "base64"):
|
||||
if not json_dict.get(required_param):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue