TableColumnModel#
- pydantic model lsst.images.serialization.TableColumnModel#
Model for a subset of the ASDF table/column schema.
- Parameters:
data (
Any)- Fields:
- field data: InlineArrayModel | ArrayReferenceModel [Required]#
Column data.
- field description: str = ''#
Extended description of the column.
- field meta: dict[str, int | float | str | bool | None] [Optional]#
Free-form metadata for the column.
- field name: str [Required]#
Name of the column.
- field unit: Unit | None = None#
Units of the column.
- classmethod from_column(column, inline=False)#
Extract a column definition and (optionally) data from an Astropy column.
- Parameters:
- Return type:
Notes
When
inline=False`, this sets the `data` field to an `ArrayReferenceModel` with ``sourceset to an empty string. This will need to be modified later.
- classmethod from_record_array(array, inline=False)#
Extract a list of column definitions from a structured numpy array.
- Parameters:
- Return type:
Notes
When
inline=False, this sets thedatafield to anArrayReferenceModelwithsourceset to an empty string. This will need to be modified later.
- classmethod from_record_dtype(dtype)#
Extract a list of column definitions from a structured numpy dtype.
- Parameters:
dtype (
TypeAliasType) – Object convertible tonumpy.dtype.- Return type:
Notes
This sets the
datafield to anArrayReferenceModelwithsourceset to an empty string. This will need to be modified later.
- classmethod from_table(table, inline=False)#
Extract column definitions and (optionally) data from an Astropy table.
- Parameters:
- Return type: