Git Product home page Git Product logo

pylada-light's Introduction

pylada-crystal

https://travis-ci.org/pylada/pylada-light.svg?branch=master

A python computational physics framework.

Minimal version of pylada necessary to just run the crystal,VASP,ewald,jobs,and database modules

Constructed by Peter Graf from Mayeul d'Avezac's pylada

Usage

There are some IPython notebooks in the notebooks subdirectory. And documentation can be found [online](http://pylada.github.io/pylada-light/), though somewhat out of date. Notably, it does not describe the PWSCF wrapper.

For more examples, look at the tests in each subfolder, and at the BDD scenarios in the espresso/tests/bdd/features folder.

Finally, do join us on [slack](pylada.slack.com). Send one of the authors an email if you need access.

Installation

There are currently two pre-requisites:

  • CMake, a cross-platform build system
  • git, a distributed version control system

Both are generally available on Linux and OS/X (via homebrew for instance).

The simplest approach is to install via pip:

  • global installation

    pip install git+https://github.com/pylada/pylada-light
  • local (user) installation

    pip install --user git+https://github.com/pylada/pylada-light
  • in a virtual environment

    mkvirtualenv --system-site-packages pylada
    source pylada/bin/activate
    pip install git+https://github.com/pylada/pylada-light

    This last approach is recommended since it keeps the pylada environment isolated from the rest of the system. Susbsequently, this environment can be accessed by running the second line.

Installation for development

There are two approaches for developping with pylada. One is to use the bare-bone cmake build system. The other is to two have pip setup the cmake system for you.

In either case, the source should first be obtained from the github repo.

  • bare-bone

    cd /path/to/source
    mkdir build
    cd build
    cmake ..
    make
    make test

    The usual cmake options apply. In order to facilitate debugging, a script :bash:`localpython.sh` exists in the build directory to a run a python session that will know where to find the pylada package that is being developped. For instance :bash:`./localpython.sh -m IPython` will launch an ipython session where the current pylada can be imported.

  • pip develop

    mkvirtualenv --system-site-packages pylada
    source pylada/bin/activate
    pip install -e git+https://github.com/pylada/pylada-light#egg=pylada
    cd pylada/src/pylada/build
    make test

    The above creates a virtual environment and installs pylada inside it in development mode. This means that the virtual environment will know about the pylada flavor in development. It is possible to edit a file, do :bash:`make`, launch python and debug. One just needs to active the virtual environment once per session.

pylada-light's People

Contributors

mdavezac avatar pgraf avatar ftherrien avatar thiassaith avatar

Watchers

James Cloos 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.