Skip to content

Commit

Permalink
Updating the BaffleSlit PVGroup to use the new areadetector.QuadEM PV…
Browse files Browse the repository at this point in the history
…Group
  • Loading branch information
awalter-bnl committed Apr 19, 2024
1 parent 5a4d7da commit cc537b6
Show file tree
Hide file tree
Showing 9 changed files with 5 additions and 45 deletions.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
from caproto.server import (pvproperty, PVGroup, SubGroup,
ioc_arg_parser, run)
import math
from plugin_base import PluginBase, pvproperty_rbv
from area_detector.plugin_base import PluginBase, pvproperty_rbv
import random
from stats_plugin import StatsPlugin
from area_detector.stats_plugin import StatsPlugin
from textwrap import dedent
import time

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from caproto.server import pvproperty, ioc_arg_parser, run
from plugin_base import PluginBase, pvproperty_rbv
from area_detector.plugin_base import PluginBase, pvproperty_rbv
from textwrap import dedent


Expand Down
4 changes: 2 additions & 2 deletions src/ari_sxn_simbeamline/caproto_servers/baffle_slit.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from caproto.ioc_examples.fake_motor_record import FakeMotor
from caproto.server import PVGroup, SubGroup, ioc_arg_parser, run
from four_blade_electrometer import FourBladeElectrometer
from area_detector.quad_em import QuadEM
from textwrap import dedent


Expand Down Expand Up @@ -37,7 +37,7 @@ def __init__(self, *args, **kwargs):
resolution=6E-3, user_limits=(-1, 20), tick_rate_hz=10.,
prefix=':outboard')

current = SubGroup(FourBladeElectrometer, prefix=':current')
currents = SubGroup(QuadEM, prefix=':currents')


# Add some code to start a version of the server if this file is 'run'.
Expand Down
36 changes: 0 additions & 36 deletions src/ari_sxn_simbeamline/caproto_servers/four_blade_electrometer.py

This file was deleted.

4 changes: 0 additions & 4 deletions tests/test_caproto_servers.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,6 @@
dict(group_cls='AriM1',
kwargs={},
marks=[pytest.mark.skipif(numpy is None, reason="Requires numpy")],),
"ARI_SXN_SimBeamline.caproto_servers.four_blade_electrometer":
dict(group_cls='FourBladeElectrometer',
kwargs={},
marks=[pytest.mark.skipif(numpy is None, reason="Requires numpy")],),
"ARI_SXN_SimBeamline.caproto_servers.baffle_slit":
dict(group_cls='BaffleSlit',
kwargs={},
Expand Down

0 comments on commit cc537b6

Please sign in to comment.