Skip to content

Commit

Permalink
spark: change metadata.samples return from javalist to pylist #1
Browse files Browse the repository at this point in the history
  • Loading branch information
roldanx committed Dec 6, 2018
1 parent 34c138b commit ad552c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions oskar-spark/src/main/python/pyoskar/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -335,9 +335,9 @@ def variantMetadata(self, df):

def samples(self, df, studyId=None):
if studyId is None:
return self._call_java("samples", df)
return self.python_utils.toPythonDict(self._call_java("samples", df))
else:
return self._call_java("samples", df, studyId)
return self.python_utils.toPythonDict(self._call_java("samples", df, studyId))

def pedigrees(self, df, studyId=None):
if studyId is None:
Expand Down

0 comments on commit ad552c3

Please sign in to comment.