Skip to content

Commit

Permalink
Merge branch 'SplitWithPyEPR' into ImporvedPulseOptimisation
Browse files Browse the repository at this point in the history
  • Loading branch information
HKaras committed Dec 4, 2024
2 parents 4f151b4 + 8e95055 commit b41d809
Show file tree
Hide file tree
Showing 40 changed files with 2,944 additions and 12,879 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,6 @@ At this time autoDEER is only avaliable from source. A packaged release will com

## License
AutoDEER is licensed under the GNU GPLv3 public license, and is released without
warrenty or liability.
warrenty or liability. Comercial use is allowed, however it is advised to contact the authors for support.

Copyright © 2021-2023: Hugo Karas, Stefan Stoll, and Gunnar Jeschke
Copyright © 2021-2024: Hugo Karas, Stefan Stoll, and Gunnar Jeschke
11 changes: 7 additions & 4 deletions autodeer/DEER_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
from scipy.integrate import cumulative_trapezoid
import logging
import importlib
from autodeer.Relaxation import RefocusedEcho2DAnalysis, CarrPurcellAnalysis, HahnEchoRelaxationAnalysis
from pyepr import CarrPurcellAnalysis, HahnEchoRelaxationAnalysis, round_step
from autodeer.ref_2D_analysis import RefocusedEcho2DAnalysis
import scipy.fft as fft
from deerlab import correctphase
from scipy.interpolate import interp1d
Expand All @@ -15,8 +16,7 @@
from scipy.optimize import minimize,brute
import scipy.optimize as opt
from autodeer.colors import primary_colors, ReIm_colors
from autodeer.utils import round_step
from autodeer.relaxation_autodeer import calculate_optimal_tau
from autodeer.delay_optimise import calculate_optimal_tau
import scipy.signal as signal
import dill

Expand Down Expand Up @@ -1329,7 +1329,10 @@ def calc_DEER_settings(relaxation_data,mode='auto', target_time=2,
if (tau2_4p >= 2*tau1_5p) and (V_4p > V_5p * 0.9):
mode = '4pDEER'

if (tau1_5p < 1.5) or mode =='4pDEER':
if (tau1_5p <1) and (tau2_4p > 0.1):
mode = '4pDEER'

if mode =='4pDEER':
# Use four-pulse DEER
deer_settings = {
'ExpType': '4pDEER',
Expand Down
Loading

0 comments on commit b41d809

Please sign in to comment.