parq_blockmodel.visualization.trame_app.BlockModelTrameApp#
- class parq_blockmodel.visualization.trame_app.BlockModelTrameApp(blockmodel=None, *, scalar=None, threshold_value=None, data_filter_1_attribute=None, data_filter_1_min=None, data_filter_1_max=None, data_filter_1_categories=None, data_filter_2_attribute=None, data_filter_2_min=None, data_filter_2_max=None, data_filter_2_categories=None, grid_type='image', frame='world', title=None, show_edges=True, z_up_lock=False, z_up_hotkey='z', app_name='ParquetBlockModel Viewer', asset_catalog=None, asset_catalog_root=None)[source]#
Read-only Trame-friendly block-model session.
The app keeps a PBM model separate from the rendered scene state. It is intentionally backend-first so the same state can be reused by a future loaded-PBM view or a hive-directory browser.
- __init__(blockmodel=None, *, scalar=None, threshold_value=None, data_filter_1_attribute=None, data_filter_1_min=None, data_filter_1_max=None, data_filter_1_categories=None, data_filter_2_attribute=None, data_filter_2_min=None, data_filter_2_max=None, data_filter_2_categories=None, grid_type='image', frame='world', title=None, show_edges=True, z_up_lock=False, z_up_hotkey='z', app_name='ParquetBlockModel Viewer', asset_catalog=None, asset_catalog_root=None)[source]#
Methods
__init__([blockmodel, scalar, ...])from_duckdb_query(duckdb_query, *[, ...])from_hive_directory(root_path, *[, scalar, ...])from_path(blockmodel_path, *[, scalar, ...])from_pbm_file(blockmodel_path, *[, scalar, ...])from_source_path(source_path, *[, scalar, ...])launch([server_name, port, host])Launch the Trame visualization app.
load_blockmodel(blockmodel, *[, ...])load_source_path(source_path)reset_data_filter([slot_index])reset_filter()set_attribute(attribute)set_colormap(colormap)set_data_filter_attribute(slot_index, attribute)set_data_filter_categories(slot_index, ...)set_data_filter_range(slot_index, values)set_discretize_deciles(enabled)set_picking_active(enabled)set_show_model_bounds(enabled)set_threshold(value)set_threshold_from_text(text_value)- launch(server_name='parq-blockmodel-trame', port=None, host=None)[source]#
Launch the Trame visualization app.
- Parameters:
server_name (str, optional) – Base name for the Trame server, by default “parq-blockmodel-trame” A UUID suffix is appended to ensure unique server instances.
port (int, optional) – Port number for the server. If None, Trame will auto-assign a port. Useful for running multiple instances without server state conflicts. Example: launch(port=8080), launch(port=8081), etc.
host (str, optional) – Host interface to bind to. Use “0.0.0.0” to accept external connections.