Skip to content

Commit 29d4d42

Browse files
committed
Add unit validation for instream op
1 parent 60bb8e2 commit 29d4d42

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/systems/validation.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ get_unit(op::Differential, args) = get_unit(args[1]) / get_unit(op.x)
4646
get_unit(op::Difference, args) = get_unit(args[1]) / get_unit(op.t)
4747
get_unit(op::typeof(getindex), args) = get_unit(args[1])
4848
get_unit(x::SciMLBase.NullParameters) = unitless
49+
get_unit(op::typeof(instream), args) = get_unit(args[1])
4950

5051
function get_unit(op, args) # Fallback
5152
result = op(1 .* get_unit.(args)...)

0 commit comments

Comments
 (0)