Skip to content

Commit

Permalink
🏗️ Lazy reload upon import
Browse files Browse the repository at this point in the history
  • Loading branch information
falexwolf committed Oct 1, 2024
1 parent 8dc7d90 commit d328ccc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clinicore/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
# trigger instance loading if users
# want to access attributes
def __getattr__(name):
if name not in {"models"}:
_check_instance_setup(from_lamindb=True)
if name != "models":
_check_instance_setup(from_module="clinicore")
return globals()[name]


Expand Down

0 comments on commit d328ccc

Please sign in to comment.