Skip to content

Commit e217692

Browse files
committed
FIX: Update svgutils after breaking API changes
1 parent 2209cd6 commit e217692

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

niworkflows/viz/utils.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ def _compose_view(bg_svgs, fg_svgs, ref=0):
398398

399399
yoffset = 0
400400
for i, r in enumerate(roots):
401-
r.moveto(0, yoffset, scale=scales[i])
401+
r.moveto(0, yoffset, scale_x=scales[i])
402402
if i == (nsvgs - 1):
403403
yoffset = 0
404404
else:
@@ -413,8 +413,8 @@ def _compose_view(bg_svgs, fg_svgs, ref=0):
413413
else:
414414
newroots = roots
415415
fig.append(newroots)
416-
fig.root.attrib.pop("width")
417-
fig.root.attrib.pop("height")
416+
fig.root.attrib.pop("width", None)
417+
fig.root.attrib.pop("height", None)
418418
fig.root.set("preserveAspectRatio", "xMidYMid meet")
419419

420420
with TemporaryDirectory() as tmpdirname:

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ install_requires =
4040
scikit-image
4141
scipy
4242
seaborn
43-
svgutils != 0.3.2
43+
svgutils >= 0.3.4
4444
transforms3d
4545
templateflow >= 0.6
4646
test_requires =

0 commit comments

Comments
 (0)