From 3770e229b17c669f73459fafb19394901b845b75 Mon Sep 17 00:00:00 2001 From: sneakers-the-rat Date: Thu, 12 Dec 2024 20:36:40 -0800 Subject: [PATCH] stray `miniscope_io`s --- docs/api/devices/camera.md | 2 +- docs/api/devices/index.md | 2 +- docs/api/devices/wirefree.md | 2 +- docs/api/models/pipeline.md | 2 +- docs/api/sources.md | 2 +- docs/reference/object_model.md | 8 ++++---- mio/devices/__init__.py | 6 +++--- mio/devices/camera.py | 4 ++-- mio/devices/device.py | 4 ++-- mio/models/models.py | 2 +- mio/sources/file.py | 2 +- tests/test_devices/test_wirefree.py | 12 ++++++------ 12 files changed, 24 insertions(+), 24 deletions(-) diff --git a/docs/api/devices/camera.md b/docs/api/devices/camera.md index 37547d00..a7bdf76c 100644 --- a/docs/api/devices/camera.md +++ b/docs/api/devices/camera.md @@ -1,7 +1,7 @@ # camera ```{eval-rst} -.. automodule:: miniscope_io.devices.camera +.. automodule:: mio.devices.camera :members: :undoc-members: ``` \ No newline at end of file diff --git a/docs/api/devices/index.md b/docs/api/devices/index.md index 2d57e817..1394da11 100644 --- a/docs/api/devices/index.md +++ b/docs/api/devices/index.md @@ -7,7 +7,7 @@ camera ``` ```{eval-rst} -.. automodule:: miniscope_io.devices.device +.. automodule:: mio.devices.device :members: :undoc-members: ``` \ No newline at end of file diff --git a/docs/api/devices/wirefree.md b/docs/api/devices/wirefree.md index e00b283a..6d687fd5 100644 --- a/docs/api/devices/wirefree.md +++ b/docs/api/devices/wirefree.md @@ -1,7 +1,7 @@ # wirefree ```{eval-rst} -.. automodule:: miniscope_io.devices.wirefree +.. automodule:: mio.devices.wirefree :members: :undoc-members: ``` \ No newline at end of file diff --git a/docs/api/models/pipeline.md b/docs/api/models/pipeline.md index d67a1e1f..dff62fd6 100644 --- a/docs/api/models/pipeline.md +++ b/docs/api/models/pipeline.md @@ -1,7 +1,7 @@ # pipeline ```{eval-rst} -.. automodule:: miniscope_io.models.pipeline +.. automodule:: mio.models.pipeline :members: :undoc-members: ``` \ No newline at end of file diff --git a/docs/api/sources.md b/docs/api/sources.md index 3789fc85..1ddf9126 100644 --- a/docs/api/sources.md +++ b/docs/api/sources.md @@ -5,7 +5,7 @@ Interfaces to external source devices like miniscopes and DAQs ## OpalKelly ```{eval-rst} -.. autoclass:: miniscope_io.sources.opalkelly.okDev +.. autoclass:: mio.sources.opalkelly.okDev :members: :undoc-members: ``` \ No newline at end of file diff --git a/docs/reference/object_model.md b/docs/reference/object_model.md index 17d6ec16..0eebe149 100644 --- a/docs/reference/object_model.md +++ b/docs/reference/object_model.md @@ -10,8 +10,8 @@ It encapsulates a {class}`.Pipeline` object that parameterizes one of several zero-to-several {class}`.Transform` nodes that transform the source ouput, and then one or several {class}`.Sink` nodes for saving data, plotting, and so on. -```{autoclasstree} miniscope_io.devices.Device miniscope_io.devices.Camera miniscope_io.devices.Miniscope -:namespace: miniscope_io +```{autoclasstree} mio.devices.Device mio.devices.Camera mio.devices.Miniscope +:namespace: mio ``` ## Pipeline @@ -33,8 +33,8 @@ their {meth}`.Node.process` method as a "pure"-ish[^pureish] function that takes data as input and returns data as output without knowledge of the nodes that are connected to it. -```{autoclasstree} miniscope_io.models.PipelineModel miniscope_io.models.Node miniscope_io.models.Source miniscope_io.models.Sink miniscope_io.models.ProcessingNode miniscope_io.models.Pipeline -:namespace: miniscope_io +```{autoclasstree} mio.models.PipelineModel mio.models.Node mio.models.Source mio.models.Sink mio.models.ProcessingNode mio.models.Pipeline +:namespace: mio ``` ## Config diff --git a/mio/devices/__init__.py b/mio/devices/__init__.py index 6afddbcd..7bc928d4 100644 --- a/mio/devices/__init__.py +++ b/mio/devices/__init__.py @@ -2,9 +2,9 @@ Devices! """ -from miniscope_io.devices.camera import Camera, Miniscope, RecordingCameraMixin -from miniscope_io.devices.device import Device, DeviceConfig -from miniscope_io.devices.wirefree import WireFreeMiniscope +from mio.devices.camera import Camera, Miniscope, RecordingCameraMixin +from mio.devices.device import Device, DeviceConfig +from mio.devices.wirefree import WireFreeMiniscope __all__ = [ "Camera", diff --git a/mio/devices/camera.py b/mio/devices/camera.py index 7033f743..219d2ac2 100644 --- a/mio/devices/camera.py +++ b/mio/devices/camera.py @@ -5,8 +5,8 @@ from abc import ABC, abstractmethod from typing import Optional, Union -from miniscope_io.devices.device import Device, DeviceConfig -from miniscope_io.types import BBox, Resolution +from mio.devices.device import Device, DeviceConfig +from mio.types import BBox, Resolution class CameraConfig(DeviceConfig): diff --git a/mio/devices/device.py b/mio/devices/device.py index da1a438b..10f73147 100644 --- a/mio/devices/device.py +++ b/mio/devices/device.py @@ -5,10 +5,10 @@ from abc import abstractmethod from typing import TYPE_CHECKING, Any, Union -from miniscope_io.models import MiniscopeConfig, MiniscopeIOModel, Pipeline, PipelineConfig +from mio.models import MiniscopeConfig, MiniscopeIOModel, Pipeline, PipelineConfig if TYPE_CHECKING: - from miniscope_io.models.pipeline import Sink, Source, Transform + from mio.models.pipeline import Sink, Source, Transform class DeviceConfig(MiniscopeConfig): diff --git a/mio/models/models.py b/mio/models/models.py index 4c6773e7..2acaa473 100644 --- a/mio/models/models.py +++ b/mio/models/models.py @@ -5,7 +5,7 @@ to group child classes in a semantic inheritance hierarchy. More specific models should either be defined in their own -module within the `miniscope_io.models` package or in their own +module within the `mio.models` package or in their own package. """ diff --git a/mio/sources/file.py b/mio/sources/file.py index b6a412ed..0011e9ee 100644 --- a/mio/sources/file.py +++ b/mio/sources/file.py @@ -2,7 +2,7 @@ File-based data sources """ -from miniscope_io.models.pipeline import Source +from mio.models.pipeline import Source class FileSource(Source): diff --git a/tests/test_devices/test_wirefree.py b/tests/test_devices/test_wirefree.py index 28a8eb26..1b5b3781 100644 --- a/tests/test_devices/test_wirefree.py +++ b/tests/test_devices/test_wirefree.py @@ -5,12 +5,12 @@ import numpy as np import pytest -from miniscope_io.devices import WireFreeMiniscope -from miniscope_io.exceptions import EndOfRecordingException -from miniscope_io.formats import WireFreeSDLayout, WireFreeSDLayout_Battery -from miniscope_io.models.data import Frame -from miniscope_io.models.sdcard import SDBufferHeader -from miniscope_io.utils import hash_video, hash_file +from mio.devices import WireFreeMiniscope +from mio.exceptions import EndOfRecordingException +from mio.formats import WireFreeSDLayout, WireFreeSDLayout_Battery +from mio.models.data import Frame +from mio.models.sdcard import SDBufferHeader +from mio.utils import hash_video, hash_file pytestmark = pytest.mark.wirefree