Skip to content

Commit

Permalink
tested at beam line
Browse files Browse the repository at this point in the history
  • Loading branch information
prjemian authored Sep 15, 2020
1 parent 633b87c commit 1185a77
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apstools/devices.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,11 +184,11 @@ class ApsCycleDM(SynSignalRO):
This signal is read-only.
"""

_cycle_ends = "0" # force a read from DM on first get()
_cycle_ends = "1980" # force a read from DM on first get()
_cycle_name = "unknown"

def get(self):
if datetime.now().isoformat() >= self._cycle_ends:
if datetime.now().isoformat(sep=" ") >= self._cycle_ends:
from .beamtime.apsbss import api_bss
# only update from data management after the end of the run
cycle = api_bss.getCurrentRun()
Expand Down

0 comments on commit 1185a77

Please sign in to comment.