Skip to content

Commit

Permalink
it at least runs, but perhaps not correctly!
Browse files Browse the repository at this point in the history
  • Loading branch information
kb1dds committed Jun 19, 2018
1 parent 3e55fce commit 6df3e42
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pysheaf/pysheaf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down

0 comments on commit 6df3e42

Please sign in to comment.