Table#
- class ansys.dynamicreporting.core.serverless.item.Table(*args, **kwargs)#
Bases:
ItemItem representing a 2D table stored as a NumPy array.
contentaccepts an existing NumPy array, a nested sequence that is converted tofloat64, or a dictionary containingarrayanddtype. The normalized array is stored in the ORMpayloaddatafield with the table’s other payload properties.Methods
Table.add_tag(tag[, value])Add or update a single tag.
Table.as_dict([recursive])Serialize the model into a plain dictionary.
Table.create(**kwargs)Factory-style creation that dispatches to the correct subclass.
Delete this object from the database.
Table.filter(**kwargs)Return a collection of items, scoped by subclass type.
Table.find([query])Search for items using an ADR query string.
Table.get(**kwargs)Retrieve a single item instance, scoped by subclass type.
Return the raw tag string stored on this object.
Reset the in-memory ORM state for this object.
Table.rem_tag(tag)Remove a tag by key, if it exists.
Table.remove_tag(tag)Alias for
rem_tag()for backwards compatibility.Table.render(*[, context, request])Render the item as HTML.
Table.save(**kwargs)Serialize the table array and payload properties into
payloaddata.Table.set_tags(tag_str)Replace all tags with the given tag string.
Attributes
Validated table input normalized to a 2D NumPy array.
Dataset associated with this item.
Database alias in which this object is stored.
Human-readable name for the item.
Whether this object has been successfully saved to the database.
Sequence index for ordering items within a dataset/session.
Session that owns this item.
Optional free-form source identifier for this item.
Tag string used to group and filter objects.
Item type identifier for table items.
Timestamp when the item was created.
Globally unique identifier for this object.
- exception DoesNotExist(extra_detail: str = None)#
Bases:
DoesNotExist
- exception IntegrityError(extra_detail: str = None)#
Bases:
IntegrityError
- exception MultipleObjectsReturned(extra_detail: str = None)#
Bases:
MultipleObjectsReturned
- align_column = None#
- bar_gap = None#
- bar_mode = None#
- col_tags = None#
- collbls = None#
- column_maximum = None#
- column_minimum = None#
- content: TableContent = None#
Validated table input normalized to a 2D NumPy array.
- format = None#
- format_column = None#
- format_row = None#
- height = None#
- histogram_bin_size = None#
- histogram_cumulative = None#
- histogram_normalized = None#
- histogram_threshold = None#
- item_justification = None#
- labels_column = None#
- labels_row = None#
- legend_position = None#
- line_color = None#
- line_error_bars = None#
- line_marker = None#
- line_marker_aux0 = None#
- line_marker_aux1 = None#
- line_marker_aux2 = None#
- line_marker_aux3 = None#
- line_marker_aux4 = None#
- line_marker_aux5 = None#
- line_marker_aux6 = None#
- line_marker_aux7 = None#
- line_marker_aux8 = None#
- line_marker_aux9 = None#
- line_marker_opacity = None#
- line_marker_scale = None#
- line_marker_size = None#
- line_marker_text = None#
- line_style = None#
- line_width = None#
- marker_text_rowname = None#
- nan_display = None#
- palette = None#
- palette_position = None#
- palette_range = None#
- palette_show = None#
- palette_title = None#
- plot = None#
- plot_margins = None#
- plot_title = None#
- plot_xaxis_type = None#
- plot_yaxis_type = None#
- plot_zaxis_type = None#
- row_tags = None#
- rowlbls = None#
- save(**kwargs)#
Serialize the table array and payload properties into
payloaddata.- Parameters:
- **kwargs
Keyword arguments forwarded to the database
savemethod of the underlying ORM instance. For eg: Theusingargument can be used to select the target database alias.
- Raises:
IntegrityErrorIf the database reports an integrity violation while saving.
InvalidFieldErrorIf invalid field names or values are supplied (via decorator).
ExceptionAny other unexpected exception is propagated unchanged.
- show_border = None#
- show_legend = None#
- show_legend_border = None#
- stacked = None#
- table_bordered = None#
- table_cond_format = None#
- table_condensed = None#
- table_default_col_labels = None#
- table_page = None#
- table_scrollx = None#
- table_scrolly = None#
- table_search = None#
- table_sort = None#
- table_title = None#
- table_wrap_content = None#
- table_wrap_word = None#
- title = None#
- width = None#
- xaxis = None#
- xaxis_format = None#
- xaxis_tick_delta = None#
- xrange = None#
- xtitle = None#
- yaxis = None#
- yaxis_format = None#
- yaxis_tick_delta = None#
- yrange = None#
- ytitle = None#
- zaxis = None#
- zaxis_format = None#
- zaxis_tick_delta = None#
- zrange = None#
- ztitle = None#