niivue / ipyniivue

A WebGL-powered Jupyter Widget for Niivue based on anywidget
BSD 2-Clause "Simplified" License
25 stars 8 forks source link

add_volume should accept a pathlib Path object as input #25

Closed christian-oreilly closed 1 year ago

christian-oreilly commented 1 year ago

Currently passing a Path object to Niivue.add_volume() crashes. As simple path = str(path) should fix that.