How glue-viz/glue works
Glue-core provides the shared scientific-data model and linking machinery used by Glue front ends. The principal workflow is to load files into data objects, collect and link datasets, define subsets, and explore the linked data through viewers. The README also documents extensible loaders and scriptability; the tree includes specialized viewers and plugins. Several relationships below are supported by the README or SOURCE INDEX references; unsampled subsystems are represented without asserting unverified internal calls.
Main entry points: data.py Dataset components · config.py Loader registry · data_collection.py Dataset collection · link_manager.py Link manager
Components 20
Data ingestion
- Loader registry
glue/config.py - NumPy loader
glue/core/data_factories/numpy.py - FITS loader
glue/core/data_factories/fits.py - Other loaders
glue/core/data_factories
Data and linking
- Dataset components
glue/core/data.py - Dataset collection
glue/core/data_collection.py - Component links
glue/core/component_link.py - Link builders
glue/core/link_helpers.py - Link manager
glue/core/link_manager.py - Subsets and regions
glue/core/subset.py
Coordination and state
- Message hub
glue/core/hub.py - Domain messages
glue/core/message.py - Commands and sessions
glue/core/command.py - Viewer state
glue/viewers/matplotlib/state.py
Viewing and extensions
- Interactive viewers
glue/viewers - Viewer and data plugins
glue/plugins - Link editor state
glue/dialogs/link_editor/state.py
Other components
- Scientist
- Scientific files
- Glue front ends
Connections 22
- Scientist → Scientific files: selects
- Scientific files → Loader registry: offers to load
- NumPy loader → Loader registry: registers with
glue/core/data_factories/numpy.py - FITS loader → Loader registry: registers with
glue/core/data_factories/fits.py - Other loaders → Loader registry: extend loaders
glue/core/data_factories/fits.py - NumPy loader → Dataset components: creates
glue/core/data_factories/numpy.py - FITS loader → Dataset components: creates
glue/core/data_factories/fits.py - Dataset components → Dataset collection: combines datasets
- Dataset collection → Link manager: maintains links
glue/core/link_manager.py - Link manager → Component links: discovers derivations
glue/core/link_manager.py - Link builders → Component links: builds links
glue/core/link_helpers.py - Dataset components → Subsets and regions: supports subsets
glue/core/data.py - Message hub → Domain messages: broadcasts
glue/core/hub.py - Link manager → Message hub: subscribes to
glue/core/link_manager.py - Commands and sessions → Dataset collection: operates on
glue/core/session.py - Viewer state → Domain messages: uses state messages
glue/viewers/matplotlib/state.py - Glue front ends → Dataset collection: uses shared core
- Glue front ends → Interactive viewers: presents graphics
- Interactive viewers → Dataset components: visualizes linked data
glue/viewers/scatter/layer_artist.py - Viewer and data plugins → Loader registry: extends loaders
glue/plugins/wcs_autolinking/wcs_autolinking.py - Link editor state → Link builders: uses link helpers
glue/dialogs/link_editor/state.py - Scientist → Glue front ends: explores results