|  | 
| 6 | 6 | class DataBlockResponse(BaseModel): | 
| 7 | 7 |     """A generic response model for a block, i.e., what is stored in `self.data` | 
| 8 | 8 |     in the corresponding DataBlock class. | 
|  | 9 | +
 | 
|  | 10 | +    It is expected but not mandatory that this model will be extended by the specific block type | 
|  | 11 | +    where possible. | 
| 9 | 12 |     """ | 
| 10 | 13 | 
 | 
| 11 | 14 |     blocktype: str | 
| @@ -39,16 +42,20 @@ class DataBlockResponse(BaseModel): | 
| 39 | 42 |     """Any warnings that occurred during block processing.""" | 
| 40 | 43 | 
 | 
| 41 | 44 |     b64_encoded_image: dict[PyObjectId, str] | None | 
| 42 |  | -    """Any base64-encoded image data associated with the block, keyed by file_id, if any.""" | 
|  | 45 | +    """Any base64-encoded image data associated with the block, keyed by `file_id`.""" | 
| 43 | 46 | 
 | 
| 44 | 47 |     bokeh_plot_data: dict | None | 
| 45 | 48 |     """A JSON-encoded string containing the Bokeh plot data, if any.""" | 
| 46 | 49 | 
 | 
| 47 | 50 |     processed_data: dict | None = None | 
| 48 |  | -    """Any processed data associated with the block, small enough to store.""" | 
|  | 51 | +    """Any processed data associated with the block, small enough to store and filter directly in the database, | 
|  | 52 | +    i.e., strings or a few hundred numbers not exceeding 16KB in size. | 
|  | 53 | +    Examples could include peak positions, and widths, but not the full spectrum. | 
|  | 54 | +    """ | 
| 49 | 55 | 
 | 
| 50 | 56 |     metadata: dict | None = None | 
| 51 |  | -    """Any metadata associated with the block.""" | 
|  | 57 | +    """Any structured metadata associated with the block, for example, | 
|  | 58 | +    experimental acquisition parameters.""" | 
| 52 | 59 | 
 | 
| 53 | 60 |     class Config: | 
| 54 | 61 |         allow_population_by_field_name = True | 
|  | 
0 commit comments