Skip to content

Commit 7f8bac5

Browse files
fix: fix is_time_domain_conversion for new input_timedomain
1 parent 79d4ec7 commit 7f8bac5

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/systems/clock_inference.jl

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -264,8 +264,14 @@ function resize_or_push!(v, val, idx)
264264
end
265265

266266
function is_time_domain_conversion(v)
267-
iscall(v) && (o = operation(v)) isa Operator &&
268-
input_timedomain(o) != output_timedomain(o)
267+
iscall(v) || return false
268+
o = operation(v)
269+
o isa Operator || return false
270+
itd = input_timedomain(o)
271+
allequal(itd) || return true
272+
otd = output_timedomain(o)
273+
itd[1] == otd || return true
274+
return false
269275
end
270276

271277
"""

0 commit comments

Comments
 (0)