Skip to content

Commit

Permalink
SYSTEMML-829 Python API Broken In Python 3 Due To Inclusion Of Tabs I…
Browse files Browse the repository at this point in the history
…n Source File

Currently, our Python Api (SystemML.py) does not support Python 3 due to
accidental inclusion of tabs into the source file. Both Python 2 and
Python 3 heavily discourage the use of any tabs, and Python 3 explicitly
does not allow a file to contain both tabs and spaces. Therefore,
this fix replaces all tabs with spaces, and we must ensure that any
future Python additions *only* include spaces.
  • Loading branch information
dusenberrymw committed Jul 29, 2016
1 parent 457bbd3 commit 305d840
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main/java/org/apache/sysml/api/python/SystemML.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,15 +210,15 @@ def __init__(self, jmlOut, sc):

def getBinaryBlockedRDD(self, varName):
raise Exception('Not supported in Python MLContext')
#try:
#try:
# rdd = RDD(self.jmlOut.getBinaryBlockedRDD(varName), self.sc)
# return rdd
#except Py4JJavaError:
# traceback.print_exc()

def getMatrixCharacteristics(self, varName):
raise Exception('Not supported in Python MLContext')
#try:
#try:
# chars = self.jmlOut.getMatrixCharacteristics(varName)
# return chars
#except Py4JJavaError:
Expand All @@ -234,14 +234,14 @@ def getDF(self, sqlContext, varName):

def getMLMatrix(self, sqlContext, varName):
raise Exception('Not supported in Python MLContext')
#try:
#try:
# mlm = self.jmlOut.getMLMatrix(sqlContext._scala_SQLContext, varName)
# return mlm
#except Py4JJavaError:
# traceback.print_exc()

def getStringRDD(self, varName, format):
raise Exception('Not supported in Python MLContext')
raise Exception('Not supported in Python MLContext')
#try:
# rdd = RDD(self.jmlOut.getStringRDD(varName, format), self.sc)
# return rdd
Expand Down

0 comments on commit 305d840

Please sign in to comment.