hubUtils
Core 'hubverse' Utilities
The hubverse's shared plumbing, tracking schema versions and converting output types.
◆Recent moves
- 1mo ago
convert_output_type() drops an order of magnitude in time and memory
Conversions are now computed per group of model and task ID combinations rather than materialising an n_samples by n_output_type_ids intermediate table, cutting both runtime and allocation by roughly ten times on large sample tables. Reported by a user, which indicates the function is being run at sizes the original design did not anticipate. It is the only computationally significant function in an otherwise accessor-shaped package.
View source ↗ - 7mo ago
Graceful failure when remote resources are unreachable
Functions that fetch remote URLs now fail with informative errors instead of whatever the underlying request produced. Relevant because schema URLs are resolved over the network, so an offline session previously failed obscurely. No change in capability.
View source ↗ - 9mo ago
Accessors for target-data.json configuration
Adds a family of getters for the v6 target-data config — date column, observable unit with dataset-specific overrides, whether target data is versioned with inheritance from global settings, and the non-task-id schema for time series. These are the primitives the sibling packages need to read v6 hubs, and they arrive shortly after the schema itself. Characteristic of this package's role as the place schema knowledge is centralised.
View source ↗ - 9mo ago
Schema v6.0.0 support and two example v6 hubs
Adds the v6.0.0 schema and threads target-data config files through get_schema_url(), read_config(), get_version_hub() and is_v3_hub(), alongside two lightweight example hubs covering single-file and hive-partitioned target data. The version number tracks the schema more than the package's own maturity. Providing fixtures for both target-data layouts is what lets the rest of the stack develop against v6 at all.
View source ↗ - 10mo ago
Lightweight example v5 hubs added for tests
Bundles two complete, valid v5 example hubs so examples and checks no longer need a clone of the public example hub repository. Test infrastructure with no user-facing effect, though it speeds up development across the sibling packages. The same pattern repeats a month later for v6.
View source ↗ - 1y ago
convert_output_type() introduced for sample-to-summary conversion
Introduces convert_output_type(), converting model outputs between types — initially samples to mean, median and quantile — and extends it to handle output type IDs that depend on task-id variable values. This is the function later optimised by an order of magnitude, and the only real computation the package performs. Its arrival alongside a schema version bump is the standard shape of a hubUtils release.
View source ↗