Skip to content

Comments

example of dependency injection to avoid globals in init#19

Closed
mweitzel wants to merge 1 commit intodimitri-yatsenko:feature/thread-safe-modefrom
mweitzel:mw/feature/no-globals
Closed

example of dependency injection to avoid globals in init#19
mweitzel wants to merge 1 commit intodimitri-yatsenko:feature/thread-safe-modefrom
mweitzel:mw/feature/no-globals

Conversation

@mweitzel
Copy link

This prevents global config from being set (and then used to get the backend adapter) in the __init__ function. Setting it after didn't prevent the wrong backend from being used.

@dimitri-yatsenko
Copy link
Owner

Superseded by datajoint#1404

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