valohai / valohai-utils

Python helper library for Valohai
MIT License
2 stars 2 forks source link

Fix local inputs with multiple files + add tests #77

Closed JuhaKiili closed 2 years ago

JuhaKiili commented 2 years ago

Wildcards were broken for local paths. List of local paths used to be broken, too.

This code:

valohai.prepare(step="train", default_inputs={"myinput": "*.png"})

Would try to download the local file path and throw an error. This PR fixes it.

Also lists as default for local inputs:

valohai.prepare(step="train", default_inputs={"myinput": ["1.png", "2.png"]})

Were fixed in the big refactor earlier, but this PR adds a test for it.

Fixes #76 Fixes #65