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

Dashboard runs #150

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Dashboard runs #150

wants to merge 1 commit into from

Conversation

ritch
Copy link
Contributor

@ritch ritch commented Aug 26, 2024

No description provided.

@@ -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)
Copy link
Contributor Author

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:
Copy link
Contributor Author

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)
Copy link
Contributor Author

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

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.

1 participant