From 6df3e4295172b08080b83ced6cd1b8b7dbf803bf Mon Sep 17 00:00:00 2001 From: Michael Robinson Date: Tue, 19 Jun 2018 14:16:46 -0400 Subject: [PATCH] it at least runs, but perhaps not correctly! --- pysheaf/pysheaf.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pysheaf/pysheaf.py b/pysheaf/pysheaf.py index cdd62c0..b62d0fe 100644 --- a/pysheaf/pysheaf.py +++ b/pysheaf/pysheaf.py @@ -893,7 +893,7 @@ def minimalExtend(self,assignment, activeCells=None, testSupport=None, method='n rowidx+=self.cells[i].stalkDim colidx=0 # Current column - for i in activeCells: + for i in ac: if self.cells[i].stalkDim > 0: for cf in self.cofaces(i): # Iterate over all cofaces of this activeCell try: @@ -906,7 +906,8 @@ def minimalExtend(self,assignment, activeCells=None, testSupport=None, method='n colidx+=self.cells[i].stalkDim # Use least squares to solve for global assignment given existing assignment - asg=self.serializeAssignment(assignment,activeCells=support) # Confusingly, activeSupport here refers *only* to the support of the assignment + asg,bnds=self.serializeAssignment(assignment,activeCells=support) # Confusingly, activeSupport here refers *only* to the support of the assignment + print mat result=np.linalg.lstsq(mat,asg) # Deserialize assignment