Code Monkey home page Code Monkey logo

mulfc's Introduction

μLFC

μLFC is a small library to facilitate the evaluation of the local field at the muon site. It is distributed as a standard library with C APIs and a Python extension.

Install

The μLFC C library has no dependencies. CMake is used as a building tool. Any C90 compiler can be used to build the library. The details for the Python package follows.

Prerequisites

The python extension has the following dependencies:

Installation

The easiest way to install the Python extension is using pre-baked wheels with pip:

pip install mulfc

Important note: when installing on Windows with pip, the minimal dependencies for Numpy are:

  • Python 3.5 ➜ Numpy 1.10+
  • Python 3.6 ➜ Numpy 1.12+

For Python versions different from the ones listed above muLFC is not available as Python Wheels, you'll have to compile and install it from source.

Compilation

You may want to build the extension yourself, especially for optimizing performances.

To compile and install the C library just do

mkdir build
cd build
cmake ..
make
make install

To install the python extension you can do

cd python
python setup.py build
python setup.py test
python setup.py install

The library and the Python extension are independent from each other.

Usage

See muesr documentation or the documentation in the header of the various functions' source code.

mulfc's People

Contributors

bonfus avatar anthonylim23 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.