This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from keras.models import Model | |
from keras.layers import ( | |
Input, | |
Dense, | |
Flatten, | |
merge, | |
Lambda | |
) | |
from keras.layers.convolutional import ( | |
Convolution2D, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import matplotlib.pyplot as plt | |
import numpy as np | |
import inspect | |
def hist_errorbars( data, xerrs=True, *args, **kwargs) : | |
"""Plot a histogram with error bars. Accepts any kwarg accepted by either numpy.histogram or pyplot.errorbar""" | |
# pop off normed kwarg, since we want to handle it specially | |
norm = False | |
if 'normed' in kwargs.keys() : | |
norm = kwargs.pop('normed') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import math | |
class ABCDCalculator(object): | |
"""Class to calculate background using the ABCD method""" | |
def __init__(self, x, y): | |
self.x = x | |
self.y = y | |
def set_x_data(self, data): | |
"""Give the calculator the x data""" | |
self.x = data |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ 92%] Generating gm2dataproducts_calo_dict.cpp, gm2dataproducts_calo_map.cpp | |
--->> genreflex: INFO: Using gccxml from /gm2/app/software/prod/external/gccxml/v0_9_20120702/Linux64bit+2.6-2.5-gcc47/bin/gccxml | |
--->> genreflex: INFO: Parsing file /gm2/app/users/eggert/playing/srcs/gm2dataproducts/calo/classes.h with GCC_XML OK | |
--->> genreflex: INFO: Generating Reflex Dictionary | |
class gm2dataproducts::XtalHitClusterArtRecord | |
class std::vector<gm2dataproducts::XtalHitClusterArtRecord> | |
class art::PtrVector<gm2ringsim::XtalArtRecord> | |
class art::Wrapper<std::vector<gm2dataproducts::XtalHitClusterArtRecord> > | |
class art::Ptr<gm2ringsim::XtalArtRecord> | |
[ 92%] Building CXX object gm2dataproducts/calo/CMakeFiles/gm2dataproducts_calo_dict.dir/gm2dataproducts_calo_dict.cpp.o |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
+++ Starting PROOF-Lite with 8 workers +++ | |
Opening connections to workers: OK (8 workers) | |
Setting up worker servers: OK (8 workers) | |
PROOF set to parallel mode (8 workers) | |
TBufferFile::WriteObjectAny:0: RuntimeWarning: since RooNumCdf has no public constructor | |
which can be called without argument, objects of this class | |
can not be read with the current library. You will need to | |
add a default constructor before attempting to read it. | |
TBufferFile::WriteObjectAny:0: RuntimeWarning: since RooNumCdf has no public constructor | |
which can be called without argument, objects of this class |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
===================== glite-job-logging-info Success ===================== | |
LOGGING INFORMATION: | |
Printing info for the Job : https://wms309.cern.ch:9000/EHTWzFN0kL288AvLiTVx9A | |
--- | |
Event: RegJob | |
- Arrived = Thu Feb 21 13:54:15 2013 CST |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "AndersonDarlingTestStat.h" | |
#include "RooStats/RooStatsUtils.h" | |
#include "RooMsgService.h" | |
#include "TMath.h" | |
#include <utility> | |
using namespace std; | |
typedef pair<Double_t, Double_t> double_pair; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
..K...K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K.EEE.K............K..K..K..K..K..K..KK.................................................................K......K..K...K.K..KK...K..K..K......................................................................................................................................................................................K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def get_seu_logs() | |
# get the portion of the logs relevant to the seu | |
logs = [] | |
Dir['**/PixelFEDSupervisor_*.log'].each do |path| | |
contents = File.read(path) | |
regex = /Message : Detected soft error using FED channel monitoring(.*?)Message : New state is:Running/m | |
matches = contents.scan(regex) | |
if (matches != nil) | |
(0..matches.size-1).each do |i| |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cms-sh|1> info run=160915 | |
--------------------------------------------------------------------------- | |
HTTPError Traceback (most recent call last) | |
/afs/cern.ch/user/n/neggert/<ipython-input-1-c10902d46b4c> in <module>() | |
----> 1 get_ipython().magic(u'info run=160915') | |
/afs/cern.ch/work/v/valya/public/soft/install/lib/python2.6/site-packages/IPython/core/interactiveshell.pyc in magic(self, arg_s, next_input) | |
1983 self._magic_locals = sys._getframe(1).f_locals | |
1984 with self.builtin_trap: | |
-> 1985 result = fn(magic_args) |
NewerOlder