Skip to content

Commit 695e991

Browse files
Export unit functions to fix DynamicQuantities test failures
The DynamicQuantities tests were failing because essential unit functions were not exported from the main module after refactoring. Added exports for: - get_unit: Extract units from symbolic expressions and variables - validate: Validate dimensional consistency of equations - equivalent: Check unit equivalence between different representations - screen_unit: Validate and process unit objects - get_literal_unit: Extract literal unit metadata from variables These functions are core to both DynamicQuantities and Unitful unit validation and need to be available in the main module for DQ tests to pass without requiring the Unitful extension. Fixes DynamicQuantities test failures in CI. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent 61a607a commit 695e991

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/ModelingToolkit.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,7 @@ export map_variables_to_equations
296296

297297
export toexpr, get_variables
298298
export simplify, substitute
299+
export get_unit, validate, equivalent, screen_unit, get_literal_unit
299300
export build_function
300301
export modelingtoolkitize
301302
export generate_initializesystem, Initial, isinitial, InitializationProblem

0 commit comments

Comments
 (0)