Skip to content

Commit

Permalink
Imports to allow editable mode
Browse files Browse the repository at this point in the history
  • Loading branch information
bernardusrendy committed Mar 17, 2024
1 parent 6269612 commit ed1b67b
Show file tree
Hide file tree
Showing 12 changed files with 21 additions and 23 deletions.
3 changes: 2 additions & 1 deletion alab_management/_default/devices/default_device.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from typing import ClassVar

from alab_management import BaseDevice, SamplePosition
from alab_management.device_view import BaseDevice
from alab_management.sample_view import SamplePosition


class DefaultDevice(BaseDevice):
Expand Down
2 changes: 1 addition & 1 deletion alab_management/builders/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from .samplebuilder import SampleBuilder

if TYPE_CHECKING:
from alab_management import BaseTask
from alab_management.task_view import BaseTask


def append_task(
Expand Down
3 changes: 1 addition & 2 deletions alab_management/task_manager/task_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@
from bson import ObjectId
from dramatiq_abort import abort

from alab_management import BaseDevice
from alab_management.device_view import get_all_devices
from alab_management.device_view import BaseDevice, get_all_devices
from alab_management.device_view.device_view import DeviceView
from alab_management.lab_view import LabView
from alab_management.logger import DBLogger, LoggingLevel
Expand Down
2 changes: 1 addition & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
author = "Alab Project Team"

# The full version, including alpha/beta/rc tags
from alab_management import __version__ # noqa
from alab_management.__init__ import __version__ # noqa

release = __version__

Expand Down
9 changes: 3 additions & 6 deletions examples/fake_lab/__init__.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
from alab_management import (
SamplePosition,
add_device,
add_standalone_sample_position,
add_task,
)
from alab_management.device_view import add_device
from alab_management.sample_view import SamplePosition, add_standalone_sample_position
from alab_management.task_view import add_task

from .devices.furnace import Furnace
from .devices.robot_arm import RobotArm
Expand Down
3 changes: 2 additions & 1 deletion examples/fake_lab/devices/furnace.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
from threading import Timer
from typing import ClassVar

from alab_management import BaseDevice, SamplePosition
from alab_management.device_view import BaseDevice
from alab_management.sample_view import SamplePosition


class Furnace(BaseDevice):
Expand Down
3 changes: 2 additions & 1 deletion examples/fake_lab/devices/robot_arm.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from typing import ClassVar

from alab_management import BaseDevice, SamplePosition
from alab_management.device_view import BaseDevice
from alab_management.sample_view import SamplePosition


class RobotArm(BaseDevice):
Expand Down
2 changes: 1 addition & 1 deletion examples/fake_lab/tasks/heating.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from bson import ObjectId

from alab_management import BaseTask
from alab_management.task_view import BaseTask
from fake_lab.devices.furnace import Furnace

from .moving import Moving
Expand Down
9 changes: 3 additions & 6 deletions tests/fake_lab/__init__.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
from alab_management import (
SamplePosition,
add_device,
add_standalone_sample_position,
add_task,
)
from alab_management.device_view import add_device
from alab_management.sample_view import SamplePosition, add_standalone_sample_position
from alab_management.task_view import add_task

from .devices.furnace import Furnace
from .devices.robot_arm import RobotArm
Expand Down
3 changes: 2 additions & 1 deletion tests/fake_lab/devices/furnace.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
from threading import Timer
from typing import ClassVar

from alab_management import BaseDevice, SamplePosition
from alab_management.device_view import BaseDevice
from alab_management.sample_view import SamplePosition


class Furnace(BaseDevice):
Expand Down
3 changes: 2 additions & 1 deletion tests/fake_lab/devices/robot_arm.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from typing import ClassVar

from alab_management import BaseDevice, SamplePosition
from alab_management.device_view import BaseDevice
from alab_management.sample_view import SamplePosition


class RobotArm(BaseDevice):
Expand Down
2 changes: 1 addition & 1 deletion tests/fake_lab/tasks/heating.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from bson import ObjectId

from alab_management import BaseTask
from alab_management.task_view import BaseTask

from ..devices.furnace import Furnace # noqa
from .moving import Moving
Expand Down

0 comments on commit ed1b67b

Please sign in to comment.