Skip to content

Commit

Permalink
updated SparkSession in test files
Browse files Browse the repository at this point in the history
  • Loading branch information
akmorrow13 committed Jan 12, 2018
1 parent e25a12a commit 7365b28
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 0 additions & 2 deletions adam-python/bdgenomics/adam/test/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@
import tempfile
import unittest


from pyspark.context import SparkContext
from pyspark.sql import SparkSession

class SparkTestCase(unittest.TestCase):
Expand Down
6 changes: 3 additions & 3 deletions scripts/jenkins-test-pyadam.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@

from bdgenomics.adam.adamContext import ADAMContext

from pyspark.context import SparkContext
from pyspark.sql import SparkSession

sc = SparkContext('local')
ac = ADAMContext(sc)
ss = SparkSession.builder.master('local').getOrCreate()
ac = ADAMContext(ss)

reads = ac.loadAlignments("adam-core/src/test/resources/small.sam").toDF().count()

Expand Down

0 comments on commit 7365b28

Please sign in to comment.