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 reload #11

Merged
merged 1 commit into from
Mar 7, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions bionty/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,11 +125,15 @@

__version__ = "0.41.0"

from lamindb_setup import _check_instance_setup
import lamindb_setup as _lamindb_setup
from lamindb_setup import _check_instance_setup, _check_setup
from lamindb_setup._check_setup import _INSTANCE_NOT_SETUP_WARNING
from lnschema_bionty import ids

_INSTANCE_SETUP = _check_instance_setup(from_lamindb=True)
if _lamindb_setup.settings.auto_connect:
_INSTANCE_SETUP = _check_instance_setup(from_lamindb=True)
else:
_INSTANCE_SETUP = _check_setup._LAMINDB_CONNECTED_TO is not None


class InstanceNotSetupError(Exception):
Expand Down
Loading