Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ducky64 committed May 22, 2024
1 parent 3e2da2b commit 478b4d1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion compiler/src/main/scala/edg/compiler/Compiler.scala
Original file line number Diff line number Diff line change
Expand Up @@ -775,7 +775,7 @@ class Compiler private (
}

// Queue up sub-trees that need elaboration - needs to be post-generate for generators
val subblockProgress = progress / block.getBlocks.size
val subblockProgress = progress / (block.getBlocks.size + 1)
currentProgress += subblockProgress
progressFn.foreach(_(currentProgress))
block.getBlocks.foreach { case (innerBlockName, innerBlock) =>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ class CompilerPartialBlockTest extends AnyFlatSpec with CompilerTestUtil {
ElaborateRecord.ExpandBlock(
DesignPath() + "source" + "inner",
ElemBuilder.LibraryPath("sourceBlock"),
0.5f
1.0f / 6
),
Set()
)
Expand All @@ -162,7 +162,7 @@ class CompilerPartialBlockTest extends AnyFlatSpec with CompilerTestUtil {
ElaborateRecord.ExpandBlock(
DesignPath() + "source" + "inner",
ElemBuilder.LibraryPath("sourceBlock"),
0.5f
1.0f / 6
),
Set()
)
Expand Down Expand Up @@ -190,7 +190,7 @@ class CompilerPartialBlockTest extends AnyFlatSpec with CompilerTestUtil {
ElaborateRecord.ExpandBlock(
DesignPath() + "source" + "inner",
ElemBuilder.LibraryPath("sourceBlock"),
0.5f
1.0f / 6
),
Set()
)
Expand Down

0 comments on commit 478b4d1

Please sign in to comment.