Merge branch 'glyg-master-patch-10249' into 'master'

Fix small typo, fixes #243

Closes #243

See merge request openflexure/openflexure-microscope-server!148
This commit is contained in:
Richard Bowman 2022-01-17 11:45:34 +00:00
commit ecc861a06e

View file

@ -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):