seung-lab / igneous

Scalable Neuroglancer compatible Downsampling, Meshing, Skeletonizing, Contrast Normalization, Transfers and more.
GNU General Public License v3.0
43 stars 17 forks source link

Image create command crashes for path including "." #168

Closed jakobtroidl closed 7 months ago

jakobtroidl commented 7 months ago

This is a minor problem, but I thought I share it since I spent my last hour on it. It seems like the igneous image create command crashes if there is a . in the filename of the .npy file. For example, this command throws an error message format not supported:

igneous image create ./my.test.npy ./PRECOMPUTED_FOLDER --compress none

whereas this works

igneous image create ./my_test.npy ./PRECOMPUTED_FOLDER --compress none
jakobtroidl commented 7 months ago

Maybe to avoid future confusion this line could be updated to

print("Format not supported: {}".format(ext))

I can submit a PR if you want @william-silversmith.

william-silversmith commented 7 months ago

Thank you for reporting this! I pushed a fix. I'm working on something skeleton related, but I'll push a new PyPI release soon.