-
Notifications
You must be signed in to change notification settings - Fork 52
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
Add "paths" key in available config keys #701
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
overall, this looks good but we should add documentation and test for it.
This would close #627 |
Codecov ReportAll modified and coverable lines are covered by tests ✅
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## main #701 +/- ##
=======================================
Coverage 54.30% 54.30%
=======================================
Files 45 45
Lines 2994 2994
Branches 560 560
=======================================
Hits 1626 1626
Misses 1243 1243
Partials 125 125 |
paths: | ||
data: /path/to/data | ||
""") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
paths: | |
data: /path/to/data | |
""") | |
paths: | |
data: /path/to/data | |
""") |
paths = config.get_setting( | ||
"paths", | ||
Path("{config_file}"), | ||
"temp_benchmark" | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
here, we should use get_data_path
def get_data_path(key: str = None, config_file=None, benchmark_name=None, | ||
default_config=None): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should only have parameter key
, the other should be inferred from the benchmark.
To get the current benchmark, you can use the novel get_running_benchmark
function.
Allow the key
paths
in benchmark config.