Skip to content

Commit e1ac636

Browse files
authored
Merge pull request #82 from smoia/fix/matchdim
Fix laplacian and degree shape check in `laplacian.normalisation`
2 parents 6da038d + 04fd91c commit e1ac636

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

nigsp/operations/laplacian.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ def normalisation(lapl, degree, norm="symmetric", fix_zeros=True):
159159
)
160160
deg = deepcopy(deg.diagonal())
161161

162-
if deg.shape != lapl.shape[:-1]:
162+
if deg.shape != lapl.shape[1:]:
163163
raise ValueError(
164164
f"The provided degree matrix has shape {deg.shape} while the "
165165
f"provided matrix has shape {lapl.shape}."

nigsp/workflow.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,7 @@ def nigsp(
295295
outprefix = os.path.join(outdir, f"{os.path.split(outprefix)[1]}_")
296296
else:
297297
outprefix = f"{outdir}{os.sep}"
298+
outext = None
298299

299300
# #### Read in data #### #
300301

0 commit comments

Comments
 (0)