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 cloudant | |
# Authentication | |
acct = cloudant.Account(uri="http://raid.nedm1:5984") | |
res = acct.login("username", "password") | |
assert res.status_code == 200 | |
# Grab the correct database | |
db = acct["nedm%2Fhg_laser"] | |
des = db.design("nedm_default") |
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 ROOT | |
import os | |
import numpy as np | |
ROOT.gSystem.Load(os.path.expanduser("~/software/TWaveform/lib/libWaveWaveBase")) | |
wf_dbl = ROOT.TDoubleWaveform() | |
wf_dbl.SetLength(1000000) | |
# put in a delta function |
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 cloudant | |
import time | |
# Authentication | |
acct = cloudant.Account(uri="http://127.0.0.1:5984") | |
res = acct.login("username", "password") | |
assert res.status_code == 200 | |
# Grab the correct database | |
db = acct["nedm%2Ftemperature_environment"] |
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 cloudant | |
import time | |
import random | |
# Authentication | |
acct = cloudant.Account(uri="http://127.0.0.1:5984") | |
res = acct.login("username", "password") | |
assert res.status_code == 200 | |
# Grab the correct database |
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 cloudant | |
# Authentication | |
acct = cloudant.Account(uri="http://raid.nedm1:5984") | |
res = acct.login("username", "password") | |
assert res.status_code == 200 | |
# Grab the correct database | |
db = acct["nedm%2Factive_coil_compensation"] |
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 sys | |
import ROOT | |
import itertools | |
import numpy | |
import math | |
class FailedComparison(Exception): | |
pass | |
def compare_objects(a, b): |
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 socket | |
class SocketObj: | |
def __init__(self, address, port, term_character="\n"): | |
s = socket.socket() | |
s.connect((str(address), port)) | |
self.s = s | |
self.tc = term_character | |
self.flush_buffer() | |
self.cmd_and_return("echo=false") |
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
# Makefile for linking against ROOT | |
# M. Marino 22 May 2007 | |
TARGETS = gistfile1 | |
SOURCES = $(wildcard *.cpp) #uncomment these to add all cc files in directory to your compile list | |
OBJS = $(SOURCES:.cpp=.o) | |
TARGETOBJ = $(patsubst %, %.o, $(TARGETS)) | |
CXX = g++ |
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
diff --git net/netx/Module.mk net/netx/Module.mk | |
index 897ea26..a55e93b 100644 | |
--- net/netx/Module.mk | |
+++ net/netx/Module.mk | |
@@ -58,7 +58,7 @@ endif | |
ifeq ($(PLATFORM),win32) | |
NETXLIBEXTRA += $(XROOTDDIRL)/libXrdClient.lib | |
else | |
-NETXLIBEXTRA += -L$(XROOTDDIRL) -lXrdOuc -lXrdSys \ | |
+NETXLIBEXTRA += -L$(XROOTDDIRL) \ |
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 cloudant | |
import sys | |
import json | |
import re | |
import logging | |
# global variables | |
_ignored_dbs = [] | |
_handled_dbs = {} | |
_max_updates = 100 |
OlderNewer