GithubHelp home page GithubHelp logo

globes_wrapper's Introduction

GLoBES_wrapper

Python wrapper for GLoBES Author: Andrii Terliuk

Installation process

Install GLoBES

First, load CVMFS software v. 4.0.1 into your environment! This is only necessary at compile time, the paths to the libraries are baked into the library by setting RPATH. It should then be possible to use the library from any environment, provided that CVMFS is reachable and paths didn't change.

Install GLoBES, currently available stable version is 3.0.11 Go to some folder and do:

 wget http://www.mpi-hd.mpg.de/personalhomes/globes/download/globes-3.0.11.tar.gz
 tar -xvzf globes-3.0.11.tar.gz
 cd ./globes-3.0.11

Install it using :

./configure --prefix=<path/to/globes/installation/folder/>
make 
make install

Install SNU

Get Sterile neutrinos and non-standard interactions extension for globes https://www.mpi-hd.mpg.de/personalhomes/globes/tools.html

Place snu.c and snu.h into ./snu/ subfolder of this repository.

go to /snu folder and apply a bit hacky patch to set correct electron density

edit prefix path in Makefile:

prefix=<put/your/path/to/GLoBES/prefix/here>

and then do

make
make install

Install wrapper

After this you need to compile a Python interface for SNU extension. First, put location of your GLoBES/SNU extension installation as prefix to Makefile, then run make and make install. You should see GLoBES.so file and now it should be ready to use.

You can check whether the library will work in your environment by running ldd -r GLoBES.so. If it finds all the libraries and no undefined symbols, you are good to go.

Testing the installation

Go to examples folder and change path in plot_numubar.py file to the location of the folder containitng GLoBES.so. Then simply run the script, which should produce the following oscillogram:

This browser does not support PDFs. Please download the PDF to view it: Download PDF.

globes_wrapper's People

Contributors

atrettin avatar terliuk avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.