Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
victorlei committed Oct 23, 2014
1 parent 5dd2af7 commit 1420792
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions smop/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@ go_m: solver.m
octave -q go.m

clean:
rm -f a.* *.pyc solver.so solver.py runtime.so
rm -f a.* *.pyc solver.so solver.py octave.so

solver.py: solver.m r8_random.m
$(PYTHON) main.py $^ -o $@

check:
$(PYTHON) runtime.py
$(PYTHON) test_runtime.py
$(PYTHON) octave.py
$(PYTHON) test_core.py
$(PYTHON) test_matlabarray.py
$(PYTHON) test_sparsearray.py
$(PYTHON) test_lexer.py
Expand Down
2 changes: 1 addition & 1 deletion smop/backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def _backend(self,level=0):
return " + ".join(a._backend() for a in self.args)
else:
#import pdb; pdb.set_trace()
return "[%s]" % self.args[0]._backend()
return "np.r_[%s]" % self.args[0]._backend()

@extend(node.cellarrayref)
def _backend(self,level=0):
Expand Down
2 changes: 1 addition & 1 deletion smop/test_runtime.py → smop/test_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# MIT license
import numpy as np
import unittest
from runtime import *
from core import *

class Getitem(unittest.TestCase):
def setUp(self):
Expand Down
2 changes: 1 addition & 1 deletion smop/test_matlabarray.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import unittest
from runtime import *
from core import *

class test_matlabarray(unittest.TestCase):
"""Expanding matlabarray"""
Expand Down
2 changes: 1 addition & 1 deletion smop/test_sparsearray.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import numpy as np
import unittest
from runtime import *
from core import *
from sparsearray import sparsearray

class Slice(unittest.TestCase):
Expand Down

0 comments on commit 1420792

Please sign in to comment.