Skip to content

Commit

Permalink
Fixed saving capabilities
Browse files Browse the repository at this point in the history
  • Loading branch information
mrakitin committed Feb 14, 2024
1 parent eb36115 commit d29d442
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ test = [
]
dev = [
"ipython",
"nexpy",
"pre-commit",
"pylint",
"pytest >=6",
Expand Down
12 changes: 6 additions & 6 deletions src/srx_caproto_iocs/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import threading
import time as ttime
import uuid
from enum import Enum, auto
from enum import Enum
from pathlib import Path

import numpy as np
Expand All @@ -20,8 +20,8 @@
class AcqStatuses(Enum):
"""Enum class for acquisition statuses."""

IDLE = auto()
ACQUIRING = auto()
IDLE = "idle"
ACQUIRING = "acquiring"


class StageStates(Enum):
Expand Down Expand Up @@ -82,10 +82,10 @@ def __init__(self, *args, update_rate=10.0, **kwargs):
self._request_queue = None
self._response_queue = None

_queue = pvproperty(value=0, doc="A PV to facilitate threading-based queue")
queue = pvproperty(value=0, doc="A PV to facilitate threading-based queue")

@_queue.startup
async def _queue(self, instance, async_lib):
@queue.startup
async def queue(self, instance, async_lib):
"""The startup behavior of the count property to set up threading queues."""
# pylint: disable=unused-argument
self._request_queue = async_lib.ThreadsafeQueue()
Expand Down

0 comments on commit d29d442

Please sign in to comment.