-
Notifications
You must be signed in to change notification settings - Fork 748
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Skip loading base/config.yml on Windows. #497
Conversation
yaml.safe_load() returns None for empty steam. (https://pyyaml.org/wiki/PyYAMLDocumentation) load_configs failed always because of ann_benchmarks/algorithms/base/config.yaml is empty.
@koron I'm not sure why this should have happened on your machine, we explicitly skip the https://github.com/erikbern/ann-benchmarks/blob/main/ann_benchmarks/definitions.py#L126-L131 |
I haven't confirmed it properly, |
I tried instantly. So it should be
|
985a689
to
754a943
Compare
This is a necessary change to work on Windows which the path separator is `\`. And revert previous change, that check None after load a config file.
754a943
to
cf89737
Compare
Based on the suggestions and experimental results, I made the changes (added another commit). If you prefer squash to one commit, let me know and I'll do it. |
None
for loaded config data
Thanks, great fix! |
load_configs()
failed always because of ann_benchmarks/algorithms/base/config.yaml is empty.yaml.safe_load()
returnsNone
for empty steam (https://pyyaml.org/wiki/PyYAMLDocumentation).This fixes it with skipping
None
which returned fromyaml.safe_load()