Skip to content

Commit

Permalink
Merge branch 'master' into test_malte
Browse files Browse the repository at this point in the history
  • Loading branch information
rdemaria authored Sep 29, 2020
2 parents 85b9ec5 + b0b611b commit 28461da
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions sixdeskdb/davsturns.py
Original file line number Diff line number Diff line change
Expand Up @@ -901,6 +901,7 @@ def RunDaVsTurns(db,force,outfile,outfileold,turnstep,davstfit,fitdat,fitdaterr,


import itertools

from . import tables
# new DA method for unequal emittances - MT
def RunDaVsTurns_ue(db, emittances, turnstep=100, method=1, close=True,
Expand Down
4 changes: 3 additions & 1 deletion sixdeskdb/deskdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -2568,7 +2568,9 @@ def mk_da_vst_ang(self,seed,tune,turnstep):
e.g. for angmax=29+1 for divisors [1, 2, 3, 5, 6, 10]"""
RunDaVsTurnsAng(self,seed,tune,turnstep)


def get_surv_tmp(self, seed, tune=None, verbose=True):

'''get survival turns from DB calculated from emitI and emitII'''

if verbose:
Expand Down Expand Up @@ -2608,6 +2610,7 @@ def get_surv_tmp(self, seed, tune=None, verbose=True):
"shape (%s, newaxis). Skip this seed %s!"%(n_angles, seed)))
return None


def get_surv(self, seed, tune_pair):
'''get survival turns from DB calculated from emitI and emitII'''

Expand All @@ -2631,7 +2634,6 @@ def get_surv(self, seed, tune_pair):
"shape (%s,newaxis). Skip this seed %s!"%(angles, seed))
return None


def plot_da_vst(self,seed,tune,ldat,ldaterr,ampmin,ampmax,tmax,slog,sfit,fitndrop):
"""plot dynamic aperture vs number of turns where ldat,ldaterr is the data and
the associated error to be plotted. The data is plotted in blue and the fit in red.
Expand Down

0 comments on commit 28461da

Please sign in to comment.