Implemented unit conversion support for KeyValueStoreSolver#30
Open
tombonfert wants to merge 6 commits into
Open
Implemented unit conversion support for KeyValueStoreSolver#30tombonfert wants to merge 6 commits into
tombonfert wants to merge 6 commits into
Conversation
- Added `unit_conversion_table` parameter to `MeasurementDBConfig` and updated related methods to handle unit conversions. - Modified `load_blob` methods across various cache classes to accept `uses_alias` parameter for compatibility with unit conversion logic. - Updated `SolverConfig` to include unit conversion mappings and properties. - Introduced unit conversion tests to validate functionality and ensure correct behavior when using aliased selectors. - Enhanced documentation and comments for clarity on unit conversion processes.
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #30 +/- ##
==========================================
+ Coverage 86.03% 86.20% +0.16%
==========================================
Files 52 52
Lines 4061 4154 +93
Branches 483 493 +10
==========================================
+ Hits 3494 3581 +87
- Misses 473 477 +4
- Partials 94 96 +2
🚀 New features to boost your workflow:
|
- Added `unit_conversion_table` parameter to relevant configuration sections, detailing its role in converting time-series values during `solve()`. - Enhanced documentation across multiple files to clarify the usage of `source_unit` and `target_unit` columns in the `channel_mapping` table. - Updated `KeyValueStoreSolver` documentation to reflect changes in unit conversion handling and its integration with aliased selectors. - Improved clarity on the configuration and functionality of unit conversion within the impulse framework.
…tation and code - Introduced `JoinKey` class to define custom join keys for alias resolution between `channel_mapping` and `channel_metrics`. - Updated `ChannelMappingConfig` to include an optional `join_keys` attribute, allowing for flexible alias-resolution configurations. - Enhanced `SolverConfig` to support the new `ChannelMappingConfig` and its properties. - Improved documentation to clarify the usage of `join_keys` and internal column names related to channel mapping. - Added unit tests to validate the behavior of configurable join keys and their integration with the `KeyValueStoreSolver`.
- Removed the field validator for channel mapping coercion, simplifying the handling of `ChannelMappingConfig`. - Updated tests to ensure compatibility with the new configuration, replacing instances of `TableConfig` with `ChannelMappingConfig` where applicable. - Enhanced unit tests to validate the behavior of the updated channel mapping configuration and its integration with the `KeyValueStoreSolver`.
- Modified the `unit_conversion.csv` file to add an `is_base` column, indicating whether each unit is a base unit for its group. - Updated entries for speed and rotation units to reflect their base status, enhancing clarity for unit conversion processes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
unit_conversion_tableparameter toMeasurementDBConfigand updated related methods to handle unit conversions.load_blobmethods across various cache classes to acceptuses_aliasparameter for compatibility with unit conversion logic.SolverConfigto include unit conversion mappings and properties.Summary
Changes
Test Plan
Checklist