Skip to content
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

Open
wants to merge 13 commits into
base: main
Choose a base branch
from

Conversation

Melvin-klein
Copy link
Member

Allow the key paths in benchmark config.

Copy link
Member

@tomMoral tomMoral left a 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.

@tomMoral
Copy link
Member

This would close #627

@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 54.30%. Comparing base (e3a3b0d) to head (0f5d789).

❗ 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           

Comment on lines +321 to +323
paths:
data: /path/to/data
""")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
paths:
data: /path/to/data
""")
paths:
data: /path/to/data
""")

Comment on lines +338 to +342
paths = config.get_setting(
"paths",
Path("{config_file}"),
"temp_benchmark"
)
Copy link
Member

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

Comment on lines +296 to +297
def get_data_path(key: str = None, config_file=None, benchmark_name=None,
default_config=None):
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants