Skip to content

Commit

Permalink
stray miniscope_ios
Browse files Browse the repository at this point in the history
  • Loading branch information
sneakers-the-rat committed Dec 13, 2024
1 parent e0d61ca commit 3770e22
Show file tree
Hide file tree
Showing 12 changed files with 24 additions and 24 deletions.
2 changes: 1 addition & 1 deletion docs/api/devices/camera.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# camera

```{eval-rst}
.. automodule:: miniscope_io.devices.camera
.. automodule:: mio.devices.camera
:members:
:undoc-members:
```
2 changes: 1 addition & 1 deletion docs/api/devices/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ camera
```

```{eval-rst}
.. automodule:: miniscope_io.devices.device
.. automodule:: mio.devices.device
:members:
:undoc-members:
```
2 changes: 1 addition & 1 deletion docs/api/devices/wirefree.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# wirefree

```{eval-rst}
.. automodule:: miniscope_io.devices.wirefree
.. automodule:: mio.devices.wirefree
:members:
:undoc-members:
```
2 changes: 1 addition & 1 deletion docs/api/models/pipeline.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# pipeline

```{eval-rst}
.. automodule:: miniscope_io.models.pipeline
.. automodule:: mio.models.pipeline
:members:
:undoc-members:
```
2 changes: 1 addition & 1 deletion docs/api/sources.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
```
8 changes: 4 additions & 4 deletions docs/reference/object_model.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
6 changes: 3 additions & 3 deletions mio/devices/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions mio/devices/camera.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
4 changes: 2 additions & 2 deletions mio/devices/device.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
2 changes: 1 addition & 1 deletion mio/models/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
"""

Expand Down
2 changes: 1 addition & 1 deletion mio/sources/file.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
File-based data sources
"""

from miniscope_io.models.pipeline import Source
from mio.models.pipeline import Source


class FileSource(Source):
Expand Down
12 changes: 6 additions & 6 deletions tests/test_devices/test_wirefree.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 3770e22

Please sign in to comment.