Skip to content

Instantly share code, notes, and snippets.

View restrepo's full-sized avatar

Diego Restrepo restrepo

View GitHub Profile
#!/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
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)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@restrepo
restrepo / file.py
Last active September 29, 2015 00:33
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 August 29, 2015 14:25
Implementation of Casas Ibarra parametrization of arXiv:1504.07892
Loading
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 March 29, 2015 23:04
Add --yes option to butler: Assume that the answer to simple yes/no questions is 'yes'
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
Loading
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 November 13, 2014 04:31
Paralle IPython
{
"metadata": {
"name": "t12aparallel",
"signature": "sha256:592681c554e9742e6e0d910855060e314fd9070ccc64be9e0a6d2e7f4e314130"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
@restrepo
restrepo / tablas.py
Last active August 29, 2015 14:07
Multiplicar
#!/usr/bin/env python
import os.path
import random
import time
def multiplicar(a,b):
resultado=input('%sx%s = ' %(a,b))
if resultado==a*b:
return True
else:
print('Error! el resultado correcto es: %s' %(a*b))
@restrepo
restrepo / asesores
Created July 15, 2014 17:50
Asesores Tesis Instituto de Física
{
"metadata": {
"name": "",
"signature": "sha256:94039565962d0f8184f6e8b9e9d2f1c0ba1e0b4c7a3e8fefc78226ac661d5f65"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [