Functions | |
def | CacheFilePath |
def | GetXLocator |
def | PlotPeakPUAllYears |
def | processdata |
def | TweakPlot |
Variables | |
tuple | accel_mode = cfg_parser.get("general", "accel_mode") |
amodetag_bug_workaround = False | |
tuple | arg_parser = optparse.OptionParser(description=desc_str) |
beam_energy = None | |
dictionary | beam_energy_defaults |
beam_energy_from_cfg = None | |
tuple | beam_energy_tmp = cfg_parser.get("general", "beam_energy") |
beam_fluctuation = None | |
dictionary | beam_fluctuation_defaults |
beam_fluctuation_from_cfg = None | |
tuple | beam_fluctuation_tmp = cfg_parser.get("general", "beam_fluctuation") |
tuple | cache_file_dir = cfg_parser.get("general", "cache_dir") |
dictionary | cfg_defaults |
tuple | cfg_parser = ConfigParser.SafeConfigParser(cfg_defaults) |
list | color_scheme_names = [i.strip() for i in color_scheme_names_tmp.split(",")] |
tuple | color_scheme_names_tmp = cfg_parser.get("general", "color_schemes") |
list | config_file_name = args[0] |
tuple | date_begin = datetime.datetime.strptime(tmp, DATE_FMT_STR_CFG) |
date_end = None | |
string | DATE_FMT_STR_AXES = "%-d %b" |
string | DATE_FMT_STR_CFG = "%Y-%m-%d" |
string | DATE_FMT_STR_LUMICALC = "%m/%d/%y %H:%M:%S" |
string | DATE_FMT_STR_LUMICALC_DAY = "%m/%d/%y" |
string | DATE_FMT_STR_OUT = "%Y-%m-%d %H:%M" |
string | desc_str = "test pu" |
string | help = "Ignore all cached lumiCalc results " |
ignore_cache = options.ignore_cache | |
list | KNOWN_ACCEL_MODES |
int | LEAD_SCALE_FACTOR = 82 |
dictionary | lumi_data_by_fill_per_year = {} |
tuple | lumicalc_flags_from_cfg = cfg_parser.get("general", "lumicalc_flags") |
tuple | lumicalc_script = cfg_parser.get("general", "lumicalc_script") |
int | NUM_SEC_IN_LS = 2 |
tuple | oracle_connection_string = cfg_parser.get("general", "oracle_connection") |
list | particle_type_str = particle_type_strings[accel_mode] |
dictionary | particle_type_strings |
tuple | path_name = CacheFilePath(cache_file_dir) |
tuple | tmp = cfg_parser.get("general", "date_begin") |
tuple | today = datetime.datetime.utcnow() |
tuple | use_oracle = (len(oracle_connection_string) != 0) |
tuple | verbose = cfg_parser.getboolean("general", "verbose") |
tuple | year_begin = date_begin.isocalendar() |
tuple | year_end = date_end.isocalendar() |
list | years = [2010,2011,2012] |
def create_public_peakpu_plots.CacheFilePath | ( | cache_file_dir, | |
day = None |
|||
) |
Definition at line 109 of file create_public_peakpu_plots.py.
def create_public_peakpu_plots.GetXLocator | ( | ax | ) |
Pick a DateLocator based on the range of the x-axis.
Definition at line 117 of file create_public_peakpu_plots.py.
References min(), and TweakPlot().
Referenced by TweakPlot().
def create_public_peakpu_plots.PlotPeakPUAllYears | ( | lumi_data_by_fill_per_year | ) |
Mode 1: years side-by-side
Definition at line 408 of file create_public_peakpu_plots.py.
References public_plots_tools.AddLogo(), public_plots_tools.SavePlot(), and TweakPlot().
def create_public_peakpu_plots.processdata | ( | years | ) |
Definition at line 68 of file create_public_peakpu_plots.py.
References python.multivaluedict.append(), spr.find(), python.multivaluedict.map(), and split.
def create_public_peakpu_plots.TweakPlot | ( | fig, | |
ax, | |||
time_begin, | |||
time_end, | |||
add_extra_head_room = False |
|||
) |
Definition at line 130 of file create_public_peakpu_plots.py.
References GetXLocator().
Referenced by GetXLocator(), and PlotPeakPUAllYears().
string create_public_peakpu_plots.accel_mode = cfg_parser.get("general", "accel_mode") |
Definition at line 225 of file create_public_peakpu_plots.py.
create_public_peakpu_plots.amodetag_bug_workaround = False |
Definition at line 233 of file create_public_peakpu_plots.py.
tuple create_public_peakpu_plots.arg_parser = optparse.OptionParser(description=desc_str) |
Definition at line 185 of file create_public_peakpu_plots.py.
tuple create_public_peakpu_plots.beam_energy = None |
Definition at line 242 of file create_public_peakpu_plots.py.
dictionary create_public_peakpu_plots.beam_energy_defaults |
Definition at line 305 of file create_public_peakpu_plots.py.
create_public_peakpu_plots.beam_energy_from_cfg = None |
Definition at line 243 of file create_public_peakpu_plots.py.
tuple create_public_peakpu_plots.beam_energy_tmp = cfg_parser.get("general", "beam_energy") |
Definition at line 239 of file create_public_peakpu_plots.py.
tuple create_public_peakpu_plots.beam_fluctuation = None |
Definition at line 255 of file create_public_peakpu_plots.py.
dictionary create_public_peakpu_plots.beam_fluctuation_defaults |
Definition at line 314 of file create_public_peakpu_plots.py.
create_public_peakpu_plots.beam_fluctuation_from_cfg = None |
Definition at line 256 of file create_public_peakpu_plots.py.
tuple create_public_peakpu_plots.beam_fluctuation_tmp = cfg_parser.get("general", "beam_fluctuation") |
Definition at line 252 of file create_public_peakpu_plots.py.
tuple create_public_peakpu_plots.cache_file_dir = cfg_parser.get("general", "cache_dir") |
Definition at line 218 of file create_public_peakpu_plots.py.
dictionary create_public_peakpu_plots.cfg_defaults |
Definition at line 198 of file create_public_peakpu_plots.py.
tuple create_public_peakpu_plots.cfg_parser = ConfigParser.SafeConfigParser(cfg_defaults) |
Definition at line 207 of file create_public_peakpu_plots.py.
list create_public_peakpu_plots.color_scheme_names = [i.strip() for i in color_scheme_names_tmp.split(",")] |
Definition at line 216 of file create_public_peakpu_plots.py.
tuple create_public_peakpu_plots.color_scheme_names_tmp = cfg_parser.get("general", "color_schemes") |
Definition at line 215 of file create_public_peakpu_plots.py.
list create_public_peakpu_plots.config_file_name = args[0] |
Definition at line 195 of file create_public_peakpu_plots.py.
tuple create_public_peakpu_plots.date_begin = datetime.datetime.strptime(tmp, DATE_FMT_STR_CFG) |
Definition at line 267 of file create_public_peakpu_plots.py.
tuple create_public_peakpu_plots.date_end = None |
Definition at line 269 of file create_public_peakpu_plots.py.
string create_public_peakpu_plots.DATE_FMT_STR_AXES = "%-d %b" |
Definition at line 60 of file create_public_peakpu_plots.py.
string create_public_peakpu_plots.DATE_FMT_STR_CFG = "%Y-%m-%d" |
Definition at line 61 of file create_public_peakpu_plots.py.
string create_public_peakpu_plots.DATE_FMT_STR_LUMICALC = "%m/%d/%y %H:%M:%S" |
Definition at line 57 of file create_public_peakpu_plots.py.
string create_public_peakpu_plots.DATE_FMT_STR_LUMICALC_DAY = "%m/%d/%y" |
Definition at line 58 of file create_public_peakpu_plots.py.
string create_public_peakpu_plots.DATE_FMT_STR_OUT = "%Y-%m-%d %H:%M" |
Definition at line 59 of file create_public_peakpu_plots.py.
string create_public_peakpu_plots.desc_str = "test pu" |
Definition at line 183 of file create_public_peakpu_plots.py.
string create_public_peakpu_plots.help = "Ignore all cached lumiCalc results " |
Definition at line 187 of file create_public_peakpu_plots.py.
create_public_peakpu_plots.ignore_cache = options.ignore_cache |
Definition at line 196 of file create_public_peakpu_plots.py.
list create_public_peakpu_plots.KNOWN_ACCEL_MODES |
Definition at line 64 of file create_public_peakpu_plots.py.
int create_public_peakpu_plots.LEAD_SCALE_FACTOR = 82 |
Definition at line 66 of file create_public_peakpu_plots.py.
tuple create_public_peakpu_plots.lumi_data_by_fill_per_year = {} |
Definition at line 381 of file create_public_peakpu_plots.py.
tuple create_public_peakpu_plots.lumicalc_flags_from_cfg = cfg_parser.get("general", "lumicalc_flags") |
Definition at line 224 of file create_public_peakpu_plots.py.
tuple create_public_peakpu_plots.lumicalc_script = cfg_parser.get("general", "lumicalc_script") |
Definition at line 223 of file create_public_peakpu_plots.py.
int create_public_peakpu_plots.NUM_SEC_IN_LS = 2 |
Definition at line 62 of file create_public_peakpu_plots.py.
tuple create_public_peakpu_plots.oracle_connection_string = cfg_parser.get("general", "oracle_connection") |
Definition at line 291 of file create_public_peakpu_plots.py.
list create_public_peakpu_plots.particle_type_str = particle_type_strings[accel_mode] |
Definition at line 303 of file create_public_peakpu_plots.py.
dictionary create_public_peakpu_plots.particle_type_strings |
Definition at line 298 of file create_public_peakpu_plots.py.
tuple create_public_peakpu_plots.path_name = CacheFilePath(cache_file_dir) |
Definition at line 365 of file create_public_peakpu_plots.py.
tuple create_public_peakpu_plots.tmp = cfg_parser.get("general", "date_begin") |
Definition at line 266 of file create_public_peakpu_plots.py.
tuple create_public_peakpu_plots.today = datetime.datetime.utcnow() |
Definition at line 273 of file create_public_peakpu_plots.py.
tuple create_public_peakpu_plots.use_oracle = (len(oracle_connection_string) != 0) |
Definition at line 292 of file create_public_peakpu_plots.py.
tuple create_public_peakpu_plots.verbose = cfg_parser.getboolean("general", "verbose") |
Definition at line 220 of file create_public_peakpu_plots.py.
tuple create_public_peakpu_plots.year_begin = date_begin.isocalendar() |
Definition at line 393 of file create_public_peakpu_plots.py.
tuple create_public_peakpu_plots.year_end = date_end.isocalendar() |
Definition at line 394 of file create_public_peakpu_plots.py.
list create_public_peakpu_plots.years = [2010,2011,2012] |
Definition at line 379 of file create_public_peakpu_plots.py.