Skip to content

Commit 64d6e50

Browse files
authored
rename job.py to async_job.py (#378)
1 parent f7d1e3e commit 64d6e50

18 files changed

+17
-17
lines changed

nucleus/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@
6565
Segment,
6666
SegmentationAnnotation,
6767
)
68+
from .async_job import AsyncJob
6869
from .camera_params import CameraParams
6970
from .connection import Connection
7071
from .constants import (
@@ -115,7 +116,6 @@
115116
NotFoundError,
116117
NucleusAPIError,
117118
)
118-
from .job import AsyncJob
119119
from .logger import logger
120120
from .model import Model
121121
from .model_run import ModelRun
File renamed without changes.

nucleus/autocurate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@
88

99
import requests
1010

11+
from nucleus.async_job import AsyncJob
1112
from nucleus.constants import (
1213
JOB_CREATION_TIME_KEY,
1314
JOB_LAST_KNOWN_STATUS_KEY,
1415
JOB_TYPE_KEY,
1516
)
16-
from nucleus.job import AsyncJob
1717

1818

1919
def entropy(name, model_run, client):

nucleus/dataset.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import requests
55

66
from nucleus.annotation_uploader import AnnotationUploader, PredictionUploader
7-
from nucleus.job import AsyncJob
7+
from nucleus.async_job import AsyncJob
88
from nucleus.prediction import Prediction, from_json
99
from nucleus.track import Track
1010
from nucleus.url_utils import sanitize_string_args

nucleus/metadata_manager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
from enum import Enum
22
from typing import TYPE_CHECKING, Dict, Optional
33

4+
from .async_job import AsyncJob
45
from .camera_params import CameraParams
56
from .constants import CAMERA_PARAMS_KEY
6-
from .job import AsyncJob
77

88
if TYPE_CHECKING:
99
from . import NucleusClient

nucleus/model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
import requests
44

5+
from .async_job import AsyncJob
56
from .constants import METADATA_KEY, MODEL_TAGS_KEY, NAME_KEY, REFERENCE_ID_KEY
67
from .dataset import Dataset
7-
from .job import AsyncJob
88
from .model_run import ModelRun
99
from .prediction import (
1010
BoxPrediction,

nucleus/model_run.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
from nucleus.annotation import check_all_mask_paths_remote
2121
from nucleus.annotation_uploader import PredictionUploader
22-
from nucleus.job import AsyncJob
22+
from nucleus.async_job import AsyncJob
2323
from nucleus.utils import (
2424
format_prediction_response,
2525
serialize_and_write_to_presigned_url,

nucleus/slice.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77
import requests
88

99
from nucleus.annotation import Annotation
10+
from nucleus.async_job import AsyncJob
1011
from nucleus.constants import EXPORT_FOR_TRAINING_KEY, EXPORTED_ROWS, ITEMS_KEY
1112
from nucleus.dataset_item import DatasetItem
1213
from nucleus.errors import NucleusAPIError
13-
from nucleus.job import AsyncJob
1414
from nucleus.prediction import from_json as prediction_from_json
1515
from nucleus.scene import Scene
1616
from nucleus.utils import (

nucleus/validate/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from typing import List
22

3+
from nucleus.async_job import AsyncJob
34
from nucleus.connection import Connection
4-
from nucleus.job import AsyncJob
55

66
from .constants import EVAL_FUNCTION_KEY, SCENARIO_TEST_ID_KEY, EntityLevel
77
from .data_transfer_objects.eval_function import (

scripts/load_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66

77
import nucleus
88
from nucleus import annotation
9+
from nucleus.async_job import JobError
910
from nucleus.dataset import Dataset
10-
from nucleus.job import JobError
1111

1212
FLAGS = flags.FLAGS
1313

tests/test_annotation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
SegmentationAnnotation,
1616
)
1717
from nucleus.annotation import SceneCategoryAnnotation
18+
from nucleus.async_job import AsyncJob, JobError
1819
from nucleus.constants import ERROR_PAYLOAD
1920
from nucleus.errors import DuplicateIDError
20-
from nucleus.job import AsyncJob, JobError
2121
from nucleus.scene import VideoScene
2222

2323
from .helpers import (

tests/test_autocurate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
import pytest
44

55
from nucleus import DatasetItem, autocurate
6+
from nucleus.async_job import AsyncJob
67
from nucleus.constants import ERROR_PAYLOAD
7-
from nucleus.job import AsyncJob
88
from nucleus.prediction import BoxPrediction
99
from tests.helpers import (
1010
TEST_BOX_PREDICTIONS,

tests/test_dataset.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
PolygonAnnotation,
1212
SegmentationAnnotation,
1313
)
14+
from nucleus.async_job import AsyncJob, JobError
1415
from nucleus.constants import (
1516
ANNOTATIONS_KEY,
1617
BOX_TYPE,
@@ -27,7 +28,6 @@
2728
UPDATED_ITEMS,
2829
)
2930
from nucleus.errors import NucleusAPIError
30-
from nucleus.job import AsyncJob, JobError
3131
from nucleus.scene import LidarScene, VideoScene
3232

3333
from .helpers import (

tests/test_indexing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
import pytest
22

33
from nucleus import DatasetItem
4+
from nucleus.async_job import AsyncJob
45
from nucleus.constants import (
56
BACKFILL_JOB_KEY,
67
ERROR_PAYLOAD,
78
JOB_ID_KEY,
89
MESSAGE_KEY,
910
STATUS_KEY,
1011
)
11-
from nucleus.job import AsyncJob
1212

1313
from .helpers import (
1414
TEST_DATASET_NAME,

tests/test_prediction.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
Segment,
1616
SegmentationPrediction,
1717
)
18+
from nucleus.async_job import AsyncJob, JobError
1819
from nucleus.constants import ERROR_PAYLOAD
1920
from nucleus.errors import DuplicateIDError
20-
from nucleus.job import AsyncJob, JobError
2121
from nucleus.scene import VideoScene
2222

2323
from .helpers import (

tests/test_scene.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
LidarScene,
1212
VideoScene,
1313
)
14+
from nucleus.async_job import JobError
1415
from nucleus.constants import (
1516
ANNOTATIONS_KEY,
1617
FRAME_RATE_KEY,
@@ -30,7 +31,6 @@
3031
URL_KEY,
3132
VIDEO_URL_KEY,
3233
)
33-
from nucleus.job import JobError
3434
from nucleus.scene import flatten
3535

3636
from .helpers import (

tests/test_slice.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
import requests
55

66
from nucleus import BoxAnnotation, BoxPrediction, Dataset, NucleusClient, Slice
7+
from nucleus.async_job import AsyncJob
78
from nucleus.constants import (
89
ANNOTATIONS_KEY,
910
BOX_TYPE,
1011
ITEM_KEY,
1112
PREDICTIONS_KEY,
1213
)
13-
from nucleus.job import AsyncJob
1414

1515
from .helpers import (
1616
TEST_BOX_ANNOTATIONS,

tests/validate/test_scenario_test_evaluation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import pytest
22

3-
from nucleus.job import AsyncJob
3+
from nucleus.async_job import AsyncJob
44
from nucleus.validate.scenario_test_evaluation import (
55
ScenarioTestEvaluation,
66
ScenarioTestItemEvaluation,

0 commit comments

Comments
 (0)