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

Refactor data module #674

Open
wants to merge 36 commits into
base: develop
Choose a base branch
from
Open

Refactor data module #674

wants to merge 36 commits into from

Conversation

ilyes319
Copy link
Contributor

@ilyes319 ilyes319 commented Nov 6, 2024

No description provided.

@LarsSchaaf
Copy link
Collaborator

Currently doesn't support wandb, as gives this error:

TypeError: Object of type KeySpecification is not JSON serializable

From line:

args_dict_json = json.dumps(args_dict)

One solution:

class CustomEncoder(json.JSONEncoder):
    def default(self, obj):
        if isinstance(obj, KeySpecification): 
            return obj.__dict__  
        return super().default(obj)

args_dict_json = json.dumps(args_dict, cls=CustomEncoder)

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.

4 participants