Skip to content
Merged
Show file tree
Hide file tree
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
9 changes: 6 additions & 3 deletions src/datajoint/autopopulate.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@
import traceback
from typing import TYPE_CHECKING, Any, Generator

import deepdiff
from tqdm import tqdm

from .errors import DataJointError, LostConnectionError
from .expression import AndList, QueryExpression

Expand Down Expand Up @@ -401,6 +398,8 @@ def _populate_direct(
Computes keys directly from key_source, suitable for single-worker
execution, development, and debugging.
"""
from tqdm import tqdm

keys = (self._jobs_to_do(restrictions) - self).keys()

logger.debug("Found %d keys to populate" % len(keys))
Expand Down Expand Up @@ -473,6 +472,8 @@ def _populate_distributed(
Uses job table for multi-worker coordination, priority scheduling,
and status tracking.
"""
from tqdm import tqdm

from .settings import config

# Define a signal handler for SIGTERM
Expand Down Expand Up @@ -581,6 +582,8 @@ def _populate1(
"""
import time

import deepdiff

# use the legacy `_make_tuples` callback.
make = self._make_tuples if hasattr(self, "_make_tuples") else self.make

Expand Down
Loading
Loading