Closed pbenner closed 1 year ago
Are you sure you're running the latest code? It should prompt you to download that file on the fly if it doesn't exist yet. Maybe this answer = "" if sys.stdin.isatty() else "y"
doesn't work as I expect...
The isatty() check is ok. The error is one line below: https://github.com/janosh/matbench-discovery/blob/0da443ffe9567b96b818f85fe7009c433432d324/matbench_discovery/data.py#L217 Instead of
while answer not in ("y", "n", "\x1b", ""):
answer = input(f"{msg} [y/n] ").lower().strip()
You should use
while answer not in ("y", "n", "\x1b"):
answer = input(f"{msg} [y/n] ").lower().strip()
With this fix, the query appears and when answering yes the file is downloaded and cached.
while answer not in ("y", "n", "\x1b"):
Oops, that was committed by accident. I'd briefly considered trying to support ESCAPE
to answer "no" but then decided against and forgot to remove this.
Solved this issue using: