-
Notifications
You must be signed in to change notification settings - Fork 18
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
Dashboard runs #150
base: main
Are you sure you want to change the base?
Dashboard runs #150
Conversation
@@ -651,6 +652,10 @@ def label(self): | |||
def to_configure_plot_params(self): | |||
return {**self.raw_params, "name": self.name} | |||
|
|||
def to_cache_key(self): | |||
key = json.dumps(self.raw_params, sort_keys=True) |
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.
Is there some well known JSON => key algorithm out there? this seems a bit too simplistic.
run_key = item_name | ||
results = self.ctx.dataset.init_run_results(run_key, data=data) | ||
self.ctx.dataset.save_run_results(run_key, results) | ||
except: |
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.
This should probably not ignore all errors... but what error should it ignore?
|
||
def load_cached_data(self, run_key): | ||
try: | ||
results = self.view.load_run_results(run_key) |
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.
This should probably be self.ctx.dataset
No description provided.