Skip to content

Instantly share code, notes, and snippets.

Diego Restrepo restrepo

Block or report user

Report or block restrepo

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View casasibarra.py
def casasibarra(di,ranMnu=False):
"""
di.keys()-> ['MH0','MA0','Mtr01','Mtr02','Mtr03',]
"""
MH0=di['MH0'];MA0=di['MA0'];Mtr01=di['Mtr01'];Mtr02=di['Mtr02'];Mtr03=di['Mtr03']
mnu1in,Dms2,Dma2,ThetSol,ThetAtm,ThetRec=neutrino_data()
#Nupa r= min, best_fit, max
#Thesol=np.array([0.278, 0.323, 0.375])
View inspire_new.py
url='http://inspirehep.net/search?ln=en&ln=en&p=find++d+>+2015-11-07+and+primarch+hep-ph'
View valor_descarga_proyecto.py
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import argparse
import sys
if __name__ == '__main__':
# create the parser
parser = argparse.ArgumentParser(
description='''Calcula el valor de la descarga académica
View test.py
def test_casasibarra():
ci={'MH0':53.,'MH':125.3,'MA0':120.,'MH1':130.,'La2':0.01,'LaL':0.001,'Mtr01':91.,\
'Mtr02':92.,'Mtr03':93,'Mtrch1': 91.8,'Mtrch2': 92.8, 'Mtrch3': 93.8}
#mnu1in,Dms2,Dma2,ThetSol,ThetAtm,ThetRec=neutrino_data()
#Mnuin=np.array([mnu1in,np.sqrt(Dms2[1]+mnu1in**2),np.sqrt(Dma2[1]+mnu1in**2)])
mnu1in=1E-5
h,U,Mnuin,phases=casasibarra(ci,norotate1=True,norotate2=True,norotate3=True,bestfit=True,\
nophases=True,min_nulight=mnu1in,max_nulight=mnu1in)
View 4VL.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View file.py
class THDM:
'''
All parameters in the several basis with functions to get the missing ones
th=THDM()
self.general -> dict with general
'''
import numpy as np
def __init__(self):
#general
@restrepo
restrepo / t13a.ipynb
Last active Aug 29, 2015
Implementation of Casas Ibarra parametrization of arXiv:1504.07892
View t13a.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@restrepo
restrepo / butler.patch
Created Mar 29, 2015
Add --yes option to butler: Assume that the answer to simple yes/no questions is 'yes'
View butler.patch
diff --git a/butler b/butler
index 08fbcf1..0f187c7 100755
--- a/butler
+++ b/butler
@@ -33,6 +33,7 @@ valid options are:
spheno , calchep , micromegas , whizard ,
madgraph , ssp
--skip-sarah : skip the SARAH run and use an existing result
+ --yes : Assume that the answer to simple yes/no questions is 'yes'
EOI
View rounding.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@restrepo
restrepo / parallel
Created Nov 13, 2014
Paralle IPython
View parallel
{
"metadata": {
"name": "t12aparallel",
"signature": "sha256:592681c554e9742e6e0d910855060e314fd9070ccc64be9e0a6d2e7f4e314130"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
You can’t perform that action at this time.