Source code for autodeer.hardware.XeprAPI_link

import numpy as np
import time
import os
import sys
import yaml
from autodeer.dataset import create_dataset_from_axes, create_dataset_from_sequence
from scipy.optimize import minimize_scalar
import logging
import re

try:
[docs] xepr_path = os.popen("Xepr --apipath").read()[:-1]
sys.path.append(xepr_path) import XeprAPI except: raise ImportError("Xepr >2.9 needs to be installed on the computer")
[docs] hw_log = logging.getLogger('interface.Xepr')
# ============================================================================ # =============================================================================