Skip to content

Commit

Permalink
review feedback from cvittal
Browse files Browse the repository at this point in the history
  • Loading branch information
ehigham committed Sep 16, 2024
1 parent 68d1fa3 commit a11a232
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion hail/python/hail/expr/expressions/expression_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ def eval_timed(expression):
ir = expression._indices.source.select_globals(**{uid: expression}).index_globals()[uid]._ir

(value, timings) = Env.backend().execute(MakeTuple([ir]), timed=True)
return (value[0], timings)
return value[0], timings


@typecheck(expression=expr_any)
Expand Down
2 changes: 1 addition & 1 deletion hail/src/main/scala/is/hail/backend/ExecuteContext.scala
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import java.security.SecureRandom
import sourcecode.Enclosing

trait TempFileManager extends AutoCloseable {
def newTmpPath(tmpdir: String, prefix: String, extension: String = ""): String
def newTmpPath(tmpdir: String, prefix: String, extension: String = null): String
}

class OwningTempFileManager(fs: FS) extends TempFileManager {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ trait LoweringPass {
}

case class OptimizePass(_context: String) extends LoweringPass {
val context = s"Optimize: ${_context}"
val before: IRState = AnyIR
val after: IRState = AnyIR
def transform(ctx: ExecuteContext, ir: BaseIR): BaseIR = Optimize(ctx, ir)
override val context = s"Optimize: ${_context}"
override val before: IRState = AnyIR
override val after: IRState = AnyIR
override def transform(ctx: ExecuteContext, ir: BaseIR): BaseIR = Optimize(ctx, ir)
}

case object LowerMatrixToTablePass extends LoweringPass {
Expand Down

0 comments on commit a11a232

Please sign in to comment.