Skip to content

Commit 3a48291

Browse files
committed
removing some comments
1 parent a1cec30 commit 3a48291

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

src/dt4acc/custom_tango/views/create_or_update_pv.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ async def update_or_create_pv(element, pv_name, value, value_type, initial_type)
1616
Equivalent to EPICS update_or_create_pv function.
1717
"""
1818
try:
19-
# Note: For Tango, device updates are typically done through
19+
# Note: For Tango device updates are typically done through
2020
# the ResultView.push_value method which handles device naming
2121
await asyncio.sleep(0.0)
2222
logger.debug(f"update_or_create_pv called for {pv_name} = {value}")
@@ -76,9 +76,7 @@ async def update_twiss_pv(pv_name, twiss_result):
7676
logger.warning("FAILED Updated twiss values: %s", e)
7777
logger.error(f"Failed to update or create twiss PV {pv_name}: {e}")
7878

79-
# Note: Tango device doesn't have main_values attributes (unlike EPICS)
80-
# These values are typically handled through individual magnet devices
81-
# So we skip writing main_values to avoid errors
79+
8280
if twiss_result.main_values:
8381
logger.debug(f"Twiss main_values available but not written to Tango device (not supported)")
8482

src/dt4acc/custom_tango/views/repeated_publishing_view.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,7 @@ async def push(self, data):
122122
None,
123123
lambda: device.write_attribute("ORBITCC/rdBpmNames", [str(val) for val in data.index])
124124
)
125-
# Note: ORBITCC/count is read-only, so we skip writing it
126-
# The counter is still incremented for logging purposes
125+
127126
_ = next(self.counter)
128127
except Exception as e:
129128
logger.error(f"Error processing orbit object data: {e}")

0 commit comments

Comments
 (0)