Skip to content

Commit

Permalink
Fix tmp_dir default, which doesn't work for the service backend. (#93)
Browse files Browse the repository at this point in the history
  • Loading branch information
lgruen authored Mar 17, 2021
1 parent bf688c5 commit ab484a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hail/python/hail/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ def stop(self):
_optimizer_iterations=nullable(int))
def init(sc=None, app_name='Hail', master=None, local='local[*]',
log=None, quiet=False, append=False,
min_block_size=0, branching_factor=50, tmp_dir='/tmp',
min_block_size=0, branching_factor=50, tmp_dir=None,
default_reference='GRCh37', idempotent=False,
global_seed=6348563392232659379,
spark_conf=None,
Expand Down Expand Up @@ -239,7 +239,7 @@ def init(sc=None, app_name='Hail', master=None, local='local[*]',
from hail.backend.spark_backend import SparkBackend

log = _get_log(log)
tmpdir = _get_tmpdir(tmp_dir)
tmpdir = _get_tmpdir(tmp_dir if tmp_dir else '/tmp')
local_tmpdir = _get_local_tmpdir(local_tmpdir)
optimizer_iterations = get_env_or_default(_optimizer_iterations, 'HAIL_OPTIMIZER_ITERATIONS', 3)

Expand Down

0 comments on commit ab484a9

Please sign in to comment.