Skip to content

Commit

Permalink
adding idempotent parameter to hail init for azure
Browse files Browse the repository at this point in the history
  • Loading branch information
rocreguant committed Sep 7, 2022
1 parent 995f258 commit e64eb92
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>au.csiro.aehrc.variant-spark</groupId>
<artifactId>variant-spark_2.12</artifactId>
<version>0.5.2-SNAPSHOT</version>
<version>0.5.2</version>
<packaging>jar</packaging>

<name>variant-spark</name>
Expand Down
4 changes: 2 additions & 2 deletions python/varspark/hail/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import varspark as vs


def init(sc=None, quiet=False, spark_conf=None, **kwargs):
def init(sc=None, idempotent=False, quiet=False, spark_conf=None, **kwargs):
""" Initialises hail context with variant-spark support.
:param kwargs: same as for hail.init()
Expand All @@ -20,7 +20,7 @@ def init(sc=None, quiet=False, spark_conf=None, **kwargs):
sys.stderr.write("using variant-spark jar at '%s'\n" % vs_jar_path)
if not vs_jar_path in jars:
jars.append(vs_jar_path)
hl.init(sc=sc, quiet=quiet, spark_conf={'spark.jars': ",".join(jars)}, **kwargs)
hl.init(sc=sc, idempotent=idempotent, quiet=quiet, spark_conf={'spark.jars': ",".join(jars)}, **kwargs)


def version():
Expand Down

0 comments on commit e64eb92

Please sign in to comment.