Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions examples/ESRF_tune_example/esrf_tune_example_no_yaml.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,24 @@
from tango.pyaml.controlsystem import TangoControlSystem,ConfigModel as ControlSystemConfig
from tango.pyaml.attribute import Attribute,ConfigModel as AttributeConfig
from tango.pyaml.attribute_read_only import AttributeReadOnly,ConfigModel as AttributeReadOnlyConfig
from pyaml.configuration import set_root_folder
import os


import numpy as np
import time

# Get the directory of the current script
script_dir = os.path.dirname(__file__)

# Go up one level and then into 'data'
relative_path = os.path.join(script_dir, '..', '..', 'tests')

# Normalize the path (resolves '..')
absolute_path = os.path.abspath(relative_path)

set_root_folder(absolute_path)

# Configuration

tangocs = ControlSystemConfig(name="live",tango_host="ebs-simu-3:10000")
Expand Down
Loading