Skip to content

Commit

Permalink
make disposal_locations public and not public stuff inside private
Browse files Browse the repository at this point in the history
  • Loading branch information
jbleon95 committed Feb 29, 2024
1 parent 627bf5e commit cbb7fb8
Show file tree
Hide file tree
Showing 22 changed files with 25 additions and 25 deletions.
2 changes: 1 addition & 1 deletion api/src/opentrons/commands/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from . import types as command_types

from opentrons.types import Location
from opentrons.protocol_api._disposal_locations import TrashBin, WasteChute
from opentrons.protocol_api.disposal_locations import TrashBin, WasteChute

if TYPE_CHECKING:
from opentrons.protocol_api import InstrumentContext
Expand Down
2 changes: 1 addition & 1 deletion api/src/opentrons/commands/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from opentrons.protocol_api.labware import Well, Labware
from opentrons.protocol_api.module_contexts import ModuleContext
from opentrons.protocol_api._disposal_locations import TrashBin, WasteChute
from opentrons.protocol_api.disposal_locations import TrashBin, WasteChute
from opentrons.protocol_api._types import OffDeckType
from opentrons.types import Location, DeckLocation

Expand Down
2 changes: 1 addition & 1 deletion api/src/opentrons/commands/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
if TYPE_CHECKING:
from opentrons.protocol_api import InstrumentContext
from opentrons.protocol_api.labware import Well
from opentrons.protocol_api._disposal_locations import TrashBin, WasteChute
from opentrons.protocol_api.disposal_locations import TrashBin, WasteChute

from opentrons.types import Location

Expand Down
2 changes: 1 addition & 1 deletion api/src/opentrons/protocol_api/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@
HeaterShakerContext,
MagneticBlockContext,
)
from .disposal_locations import TrashBin, WasteChute
from ._liquid import Liquid
from ._types import OFF_DECK
from ._disposal_locations import TrashBin, WasteChute
from ._nozzle_layout import (
COLUMN,
ALL,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
from opentrons.protocol_engine.errors.exceptions import LabwareNotLoadedOnModuleError
from opentrons.protocol_engine.types import StagingSlotLocation, Dimensions
from opentrons.types import DeckSlotName, StagingSlotName, Point
from ..._disposal_locations import TrashBin, WasteChute
from ...disposal_locations import TrashBin, WasteChute

if TYPE_CHECKING:
from ...labware import Labware
Expand Down
2 changes: 1 addition & 1 deletion api/src/opentrons/protocol_api/core/engine/instrument.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
from ..instrument import AbstractInstrument
from .well import WellCore

from ..._disposal_locations import TrashBin, WasteChute
from ...disposal_locations import TrashBin, WasteChute

if TYPE_CHECKING:
from .protocol import ProtocolCore
Expand Down
2 changes: 1 addition & 1 deletion api/src/opentrons/protocol_api/core/engine/protocol.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
from ... import validation
from ..._types import OffDeckType
from ..._liquid import Liquid
from ..._disposal_locations import TrashBin, WasteChute
from ...disposal_locations import TrashBin, WasteChute
from ..protocol import AbstractProtocol
from ..labware import LabwareLoadParams
from .labware import LabwareCore
Expand Down
2 changes: 1 addition & 1 deletion api/src/opentrons/protocol_api/core/instrument.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from opentrons.protocols.api_support.util import FlowRates
from opentrons.protocol_api._nozzle_layout import NozzleLayout

from .._disposal_locations import TrashBin, WasteChute
from ..disposal_locations import TrashBin, WasteChute
from .well import WellCoreType


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
from opentrons.protocols.geometry import planning
from opentrons.protocol_api._nozzle_layout import NozzleLayout

from ..._disposal_locations import TrashBin, WasteChute
from ...disposal_locations import TrashBin, WasteChute
from ..instrument import AbstractInstrument
from .legacy_well_core import LegacyWellCore
from .legacy_module_core import LegacyThermocyclerCore, LegacyHeaterShakerCore
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
from opentrons.protocols import labware as labware_definition

from ...labware import Labware
from ...disposal_locations import TrashBin, WasteChute
from ..._liquid import Liquid
from ..._types import OffDeckType
from ..._disposal_locations import TrashBin, WasteChute
from ..protocol import AbstractProtocol
from ..labware import LabwareLoadParams

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
UnexpectedTipAttachError,
)

from ..._disposal_locations import TrashBin, WasteChute
from ...disposal_locations import TrashBin, WasteChute
from opentrons.protocol_api._nozzle_layout import NozzleLayout

from ..instrument import AbstractInstrument
Expand Down
2 changes: 1 addition & 1 deletion api/src/opentrons/protocol_api/core/protocol.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
from .labware import LabwareCoreType, LabwareLoadParams
from .module import ModuleCoreType
from .._liquid import Liquid
from .._disposal_locations import TrashBin, WasteChute
from .._types import OffDeckType
from ..disposal_locations import TrashBin, WasteChute

if TYPE_CHECKING:
from ..labware import Labware
Expand Down
2 changes: 1 addition & 1 deletion api/src/opentrons/protocol_api/create_protocol_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

from .protocol_context import ProtocolContext
from .deck import Deck
from ._disposal_locations import TrashBin
from .disposal_locations import TrashBin

from .core.common import ProtocolCore as AbstractProtocolCore
from .core.legacy.deck import Deck as LegacyDeck
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ class DisposalOffset:
z: float


class DisposalLocation(TypingProtocol):
class _DisposalLocation(TypingProtocol):
"""Abstract class for disposal location."""

def top(self, x: float = 0, y: float = 0, z: float = 0) -> DisposalLocation:
def top(self, x: float = 0, y: float = 0, z: float = 0) -> _DisposalLocation:
"""Returns a disposal location with a user set offset."""
...

Expand Down Expand Up @@ -74,7 +74,7 @@ def height(self) -> float:
...


class TrashBin(DisposalLocation):
class TrashBin(_DisposalLocation):
"""Represents a Flex or OT-2 trash bin.
See :py:meth:`.ProtocolContext.load_trash_bin`.
Expand Down Expand Up @@ -158,7 +158,7 @@ def height(self) -> float:
)


class WasteChute(DisposalLocation):
class WasteChute(_DisposalLocation):
"""Represents a Flex waste chute.
See :py:meth:`.ProtocolContext.load_waste_chute`.
Expand Down
2 changes: 1 addition & 1 deletion api/src/opentrons/protocol_api/instrument_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
from .core.engine import ENGINE_CORE_API_VERSION
from .core.legacy.legacy_instrument_core import LegacyInstrumentCore
from .config import Clearances
from ._disposal_locations import TrashBin, WasteChute
from .disposal_locations import TrashBin, WasteChute
from ._nozzle_layout import NozzleLayout
from . import labware, validation

Expand Down
2 changes: 1 addition & 1 deletion api/src/opentrons/protocol_api/protocol_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@

from . import validation
from ._liquid import Liquid
from ._disposal_locations import TrashBin, WasteChute
from .disposal_locations import TrashBin, WasteChute
from .deck import Deck
from .instrument_context import InstrumentContext
from .labware import Labware
Expand Down
2 changes: 1 addition & 1 deletion api/src/opentrons/protocol_api/validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
ThermocyclerStep,
)

from ._disposal_locations import TrashBin, WasteChute
from .disposal_locations import TrashBin, WasteChute

if TYPE_CHECKING:
from .labware import Well
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from opentrons.motion_planning.adjacent_slots_getters import _MixedTypeSlots
from opentrons.protocols.api_support.types import APIVersion
from opentrons.protocol_api import MAX_SUPPORTED_VERSION
from opentrons.protocol_api._disposal_locations import (
from opentrons.protocol_api.disposal_locations import (
TrashBin,
WasteChute,
_TRASH_BIN_CUTOUT_FIXTURE,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
ColumnNozzleLayoutConfiguration,
AddressableOffsetVector,
)
from opentrons.protocol_api._disposal_locations import (
from opentrons.protocol_api.disposal_locations import (
TrashBin,
WasteChute,
DisposalOffset,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@
ModuleCore,
load_labware_params,
)
from opentrons.protocol_api._disposal_locations import TrashBin, WasteChute
from opentrons.protocol_api._liquid import Liquid
from opentrons.protocol_api.disposal_locations import TrashBin, WasteChute
from opentrons.protocol_api.core.engine.exceptions import InvalidModuleLocationError
from opentrons.protocol_api.core.engine.module_core import (
TemperatureModuleCore,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
from opentrons.protocol_api.core.legacy.legacy_instrument_core import (
LegacyInstrumentCore,
)
from opentrons.protocol_api._disposal_locations import TrashBin, WasteChute
from opentrons.protocol_api.disposal_locations import TrashBin, WasteChute
from opentrons.protocol_api._nozzle_layout import NozzleLayout
from opentrons.types import Location, Mount, Point

Expand Down
2 changes: 1 addition & 1 deletion api/tests/opentrons/protocol_api/test_protocol_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
MagneticModuleCore,
MagneticBlockCore,
)
from opentrons.protocol_api._disposal_locations import TrashBin, WasteChute
from opentrons.protocol_api.disposal_locations import TrashBin, WasteChute
from opentrons.protocols.api_support.deck_type import (
NoTrashDefinedError,
)
Expand Down

0 comments on commit cbb7fb8

Please sign in to comment.