Skip to content

Commit

Permalink
Removed defaults from conda environment due to licensing changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
canismarko committed Sep 25, 2024
1 parent fc98554 commit e0826a2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ variables:

channels:
- conda-forge
- defaults
- aps-anl-tag
- nsls2forge
- nodefaults

dependencies:
# --- Python core packages
Expand Down Expand Up @@ -56,7 +56,7 @@ dependencies:
- bluesky-adaptive
- bluesky >=1.8.1
- ophyd >=1.6.3
- ophyd-async >= 0.5.1
- ophyd-async >= 0.6.0
- apstools >= 1.6.20
- pcdsdevices # For extra signal types
- pydm >=1.18.0
Expand Down
6 changes: 3 additions & 3 deletions src/haven/instrument/motor.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
from ophyd import Component as Cpt
from ophyd import EpicsMotor, EpicsSignal, EpicsSignalRO, Kind
from ophyd_async.core import (
CALCULATE_TIMEOUT,
DEFAULT_TIMEOUT,
AsyncStatus,
CalculatableTimeout,
CalculateTimeout,
ConfigSignal,
SignalBackend,
SignalX,
Expand All @@ -36,10 +36,10 @@ def __init__(self, *args, trigger_value=1, **kwargs):
super().__init__(*args, **kwargs)

def trigger(
self, wait=False, timeout: CalculatableTimeout = CalculateTimeout
self, wait=False, timeout: CalculatableTimeout = CALCULATE_TIMEOUT
) -> AsyncStatus:
"""Trigger the action and return a status saying when it's done"""
if timeout is CalculateTimeout:
if timeout is CALCULATE_TIMEOUT:
timeout = self._timeout
coro = self._backend.put(self.trigger_value, wait=wait, timeout=timeout)
return AsyncStatus(coro)
Expand Down
4 changes: 2 additions & 2 deletions src/haven/instrument/srs570.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@
from typing import Optional, Type

from ophyd_async.core import (
CALCULATE_TIMEOUT,
AsyncStatus,
CalculatableTimeout,
CalculateTimeout,
Device,
SignalRW,
SubsetEnum,
Expand Down Expand Up @@ -162,7 +162,7 @@ async def calculate_settle_time(self, value):

@AsyncStatus.wrap
async def set(
self, value: T, wait=True, timeout: CalculatableTimeout = CalculateTimeout
self, value: T, wait=True, timeout: CalculatableTimeout = CALCULATE_TIMEOUT
) -> AsyncStatus:
aw = super().set(value=value, wait=wait, timeout=timeout)
if wait:
Expand Down

0 comments on commit e0826a2

Please sign in to comment.