From 32cf2de96ea0918d942c5b9e32d69b5ad7d49790 Mon Sep 17 00:00:00 2001 From: Joel Collins Date: Tue, 3 Nov 2020 16:11:37 +0000 Subject: [PATCH] Formatting --- openflexure_microscope/api/v2/views/captures.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/openflexure_microscope/api/v2/views/captures.py b/openflexure_microscope/api/v2/views/captures.py index 58ccf0d0..9272aafb 100644 --- a/openflexure_microscope/api/v2/views/captures.py +++ b/openflexure_microscope/api/v2/views/captures.py @@ -40,6 +40,7 @@ class CaptureSchema(ImageSchema): for interacting with a capture. Additional attributes are returned by using FullCaptureSchema """ + dataset = fields.Dict() # TODO: Make schema file = fields.String( data_key="path", description="Path of file on microscope device" @@ -92,12 +93,14 @@ class CaptureSchema(ImageSchema): return data + class FullCaptureSchema(CaptureSchema): """ Capture schema including metadata. We exclude this by default since it can become huge due to complex settings including lens shading tables and CSM matrices. """ + metadata = fields.Nested(CaptureMetadataSchema())