Skip to content

Remove hardcoded tub fields and silent fallbacks from TubStatistics#24

Merged
DocGarbanzo merged 3 commits intodevfrom
claude/remove-hardcoded-tub-fields-y1gqh
Jan 27, 2026
Merged

Remove hardcoded tub fields and silent fallbacks from TubStatistics#24
DocGarbanzo merged 3 commits intodevfrom
claude/remove-hardcoded-tub-fields-y1gqh

Conversation

@DocGarbanzo
Copy link
Owner

  • Remove deprecated gyro_z_index parameter from TubStatistics.init
  • Require explicit field_aggregations or config with FIELD_AGGREGATIONS
  • Remove silent gyro_z_agg fallback in default_lap_sorting_strategy
  • Update _load_field_aggregations_from_config to require FIELD_AGGREGATIONS
  • Raise ValueError for old-style field_aggregations with 'extractor'
  • Update all tests to pass explicit field_aggregations parameter
  • Add FULL_SORTING_STRATEGY helper for tests that need gyro_z_agg ranking

This ensures all tub field configurations are explicit - no silent defaults
that may not match the actual tub schema.

https://claude.ai/code/session_01BkSETqkmCyc5PavsvyAidf

- Remove deprecated gyro_z_index parameter from TubStatistics.__init__
- Require explicit field_aggregations or config with FIELD_AGGREGATIONS
- Remove silent gyro_z_agg fallback in default_lap_sorting_strategy
- Update _load_field_aggregations_from_config to require FIELD_AGGREGATIONS
- Raise ValueError for old-style field_aggregations with 'extractor'
- Update all tests to pass explicit field_aggregations parameter
- Add FULL_SORTING_STRATEGY helper for tests that need gyro_z_agg ranking

This ensures all tub field configurations are explicit - no silent defaults
that may not match the actual tub schema.

https://claude.ai/code/session_01BkSETqkmCyc5PavsvyAidf
- Add FIELD_AGGREGATIONS to test configs that use TubDataset with config
- Add LAP_SORTING_CRITERIA to test configs that expect gyro_z_agg rankings
- Add FULL_SORTING_STRATEGY constant to tests that need gyro_z_agg in rankings
- Update tests to pass explicit sorting_strategy when testing gyro_z_agg

These tests previously relied on silent defaults that have been removed.

https://claude.ai/code/session_01BkSETqkmCyc5PavsvyAidf
Add skipif markers to tests that depend on external tub data at
/Users/dirk/cars/hyper/data. These tests will now skip gracefully
when the data directory or catalog manifest files don't exist.

https://claude.ai/code/session_01BkSETqkmCyc5PavsvyAidf
@DocGarbanzo DocGarbanzo merged commit 9822458 into dev Jan 27, 2026
24 of 28 checks passed
@DocGarbanzo DocGarbanzo deleted the claude/remove-hardcoded-tub-fields-y1gqh branch January 27, 2026 20:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants