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

Fix use of config #133

Merged
merged 3 commits into from
May 7, 2024
Merged

Fix use of config #133

merged 3 commits into from
May 7, 2024

Conversation

sarah-segel
Copy link
Collaborator

Basically, undo most of the (unnecessary) changes made in #103, which were done to allow accessing the attributes of config when using the API mode, e.g. executing examples/api/importances.py.

The reason using the API mode did not work was that config was only added to the deepcave-attributes when executing server.py, which is not the case when running the API examples. Thus, from deepcave import config failed in these cases.

So now, instead of importing the Config class via from deepcave.config import Config, config is always added to the deepcave-attributes, such that it is available when running the API examples as well.

@sarah-segel sarah-segel requested a review from KrissiHub March 27, 2024 09:39
Copy link
Collaborator

@KrissiHub KrissiHub left a comment

Choose a reason for hiding this comment

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

Looks good to me

@sarah-segel sarah-segel merged commit 71ad083 into development May 7, 2024
3 checks passed
@sarah-segel sarah-segel deleted the fix-config-usage branch May 15, 2024 12:42
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.

2 participants