Skip to content

Commit a871f65

Browse files
committed
new updated tango setup and branch
1 parent d5bc8d7 commit a871f65

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+10002
-2338
lines changed

bessyii_lattice_json.json

Lines changed: 3725 additions & 0 deletions
Large diffs are not rendered by default.

scripts/dt4acc_enhanced_tango.py

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
#!/usr/bin/env python3
2+
"""
3+
DT4ACC Enhanced Tango Server Script - Equivalent to EPICS softioc script
4+
Runs the enhanced Tango server with EPICS-aligned heartbeat monitoring.
5+
"""
6+
7+
import logging
8+
import os
9+
import sys
10+
import time
11+
12+
# Add the src directory to Python path
13+
sys.path.append(os.path.join(os.path.dirname(__file__), '..', 'src'))
14+
15+
# Set up logging
16+
logging.basicConfig(level=logging.WARNING)
17+
18+
# Set environment variable for Tango server type
19+
os.environ["server"] = "tango"
20+
21+
from dt4acc.custom_tango.enhanced_tango_server_complete import main
22+
23+
if __name__ == "__main__":
24+
try:
25+
# Run the enhanced Tango server with heartbeat
26+
print("🚀 Starting DT4ACC Enhanced Tango Server...")
27+
print("🔧 Server type: Tango")
28+
main()
29+
except KeyboardInterrupt:
30+
print("\n🛑 Tango server stopped by user")
31+
except Exception as e:
32+
print(f"❌ Tango server failed: {e}")
33+
raise

src/dt4acc/custom_epics/views/calculation_result_view.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,4 +184,4 @@ async def heart_beat(self):
184184
# Todo: remove this duplication ...
185185
# currently
186186
#
187-
# await self.bpm_pvs.heart_beat()
187+
# await self.bpm_pvs.heart_beat()

0 commit comments

Comments
 (0)