Giter Club home page Giter Club logo

sacla's Introduction

Overview

This repository holds all the scripts and ipython notebooks used for the PSI November SACLA beamtime.

Before using go to utilities folder and execute compile_cython.sh to compile the cython code!

Code is provided without any guarantee

Installation

Python environment (Linux)

The suggested way to have a fully functional and updated Python environment is to use the Anaconda Python Distribution (https://store.continuum.io/cshop/anaconda/). Download it, install it in some local directory <anaconda_dir>, and then export the new PATH:

export PATH=<anaconda_dir>/bin:${PATH}'

When starting ipython, you should then get something like:

$ ipython
Python 2.7.9 |Continuum Analytics, Inc.| (default, Mar  9 2015, 16:20:48) 
Type "copyright", "credits" or "license" for more information.

IPython 2.2.0 -- An enhanced Interactive Python.
Anaconda is brought to you by Continuum Analytics.
Please check out: http://continuum.io/thanks and https://binstar.org
?         -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help      -> Python's own help system.
object?   -> Details about 'object', use 'object??' for extra details.

In [1]: 

Getting this code

This code needs the photon_tools library, located here: (https://github.com/leosala/photon_tools.git).

You can either clone this git repository, e.g.:

mkdir <mydir>
cd <mydir>
git clone https://github.com/leosala/photon_tools.git
cd photon_tools
python setup.py develop
cd ..
git clone https://github.com/leosala/sacla.git

or just download a tarball, e.g.:

wget https://github.com/leosala/photon_tools/archive/master.zip
wget https://github.com/leosala/sacla/archive/master.zip

Default libraries (tools, numpy, etc) can be loaded doing %load load_defaults.py in an IPython shell.

Please compile the Cython extensions before running the code (this will likely disappear...)

cd utilities
./compile_cython.sh

Examples

Exploring HDF5 files

sacla's People

Watchers

 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.