Skip to content

Instantly share code, notes, and snippets.

View pradal's full-sized avatar

Christophe Pradal pradal

View GitHub Profile
@pradal
pradal / phenomenal.yaml
Created November 25, 2019 09:07
Phenomenal conda env specification on Ubuntu 16.04
name: vclimb_openalea
channels:
- anaconda
- defaults
- openalea
dependencies:
- alabaster=0.7.12=py27_0
- asn1crypto=0.24.0=py27_0
- babel=2.6.0=py27_0
- backports=1.0=py27_1
@pradal
pradal / macenv.txt
Created October 28, 2019 14:44
Conda environment for mac
# This file may be used to create an environment using:
# $ conda create --name <env> --file <this file>
# platform: osx-64
@EXPLICIT
https://conda.anaconda.org/openalea/osx-64/ann-1.1.2-0.tar.bz2
https://repo.anaconda.com/pkgs/main/osx-64/blas-1.0-mkl.tar.bz2
https://repo.anaconda.com/pkgs/main/osx-64/bzip2-1.0.6-h1de35cc_5.tar.bz2
https://repo.anaconda.com/pkgs/main/osx-64/ca-certificates-2018.03.07-0.tar.bz2
https://conda.anaconda.org/openalea/osx-64/gmp-6.1.1-0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/icu-54.1-0.tar.bz2
@pradal
pradal / environment.yaml
Created March 27, 2019 18:12
Conda environment for Mac to install OpenAlea
name: impulse
channels:
- openalea
- defaults
dependencies:
- alabaster=0.7.11=py27_0
- appdirs=1.4.3=py27h28b3542_0
- appnope=0.1.0=py27hb466136_0
- asn1crypto=0.24.0=py27_0
- attrs=18.2.0=py27h28b3542_0
@pradal
pradal / stwig.py
Created October 3, 2018 13:21
AutoWIG for stat_tool
import autowig
asg = autowig.AbstractSemanticGraph()
import sys, os
from path import Path
prefix = Path(sys.prefix).abspath()
headers = list((prefix/'include'/'stat_tool').walkfiles('*.h'))
flags = ['-x', 'c++', '-std=c++11', '-ferror-limit=0', '-Wno-switch', '-Wno-unknown-attributes']
@pradal
pradal / Lpy_without_GUI.ipynb
Created March 4, 2018 12:53
Running L-Py without GUI
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@pradal
pradal / euroscipy.md
Last active June 21, 2017 07:51 — forked from pfernique/euroscipy.md
Summary for EuroSciPy 2017

== AutoWIG: Wrapping very large C++ libraries in Python automatically

Most of Python and R scientific packages incorporate compiled scientific libraries to speed up the code and reuse legacy libraries. While several semi-automatic solutions exist to wrap these compiled libraries, the process of wrapping a large library is cumbersome and time consuming.

In this paper, we introduce AutoWIG, a Python package that wraps automatically compiled libraries into high-level languages using LLVM/Clang technologies and the Mako templating engine.

Our approach is automatic, extensible, and applies to complex C++ libraries, composed of thousands of classes or incorporating modern meta-programming constructs.

@pradal
pradal / phenome.sh
Last active February 2, 2017 14:39
Installation script of phenome on the cloud
# Author: Christophe Pradal
# Install minimal debian pkgs
apt-get update -yqq && apt-get install -yqq \
wget \
bzip2 \
git \
libglib2.0-0 \
libsm6 \
libxrender \
@pradal
pradal / goat.py
Created March 26, 2015 19:14
goat : git for openalea
""" Classical git command to manage OpenAlea workflow
Example
=======
>>> cd mydir
>>> user('pradal', gforge='cpradal')
>>> clone('openalea')
>>> remote('openalea')
@pradal
pradal / PkgIt presentation.ipynb
Created January 28, 2014 08:49
PkgIt Notebook
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.