iFitLib ad hoc Scattering Data Fitting Tool - mccode-dev/ifitlab GitHub Wiki
Presentation:
https://elearn1.fysik.dtu.dk/ifl/ifl-static/20190527-jg-ifl-bilbao.pdf
Installation Notes:
For installation with ldap, follow the McWeb wiki, but use pip3 and Django 2.1.4.
--- FIXME
- Updated docs - fails:
git clone https://github.com/McStasMcXtrace/ifitlab.git
in /srv/mcweb
- Get, set execute permissions and install a specific Miniconda for Python 3.6 (
wget https://repo.continuum.io/miniconda/Miniconda3-4.3.31-Linux-x86_64.sh
chmod a+x Miniconda3-4.3.31-Linux-x86_64.sh
./Miniconda3-4.3.31-Linux-x86_64.sh -b -p $PWD/iflvenv
- Enable the newly installed environment and install gcc for stable compilation of some PY dependencies
source iflvenv/bin/activate
conda install gcc
export CC=$PWD/iflvenv/bin/gcc
conda install nomkl
conda install scipy
- Install remaining PY dependencies, except Matlab-interface
pip install -I Django==2.1.4 simplejson django_auth_ldap uwsgi python-ldap
--- Ubuntu 19.04:
sudo apt-get install python3-dev
pip install -I Django==2.1.4 simplejson django_auth_ldap uwsgi python-ldap scipy numpy
virtualenv -p python3 iflvenv
source iflvenv/bin/activate
Install Matlab 2019A and the python interface as usual.
``` ./manage.py gentypes ifitlib . ./manage.py collectstatic ./manage.py migrate ./manage.py createsuperuser
Add to Nginx config:
# ifitlab
location /ifl/ifl-static {
alias /srv/mcweb/ifitlab/iflproj/static;
}
location /ifl {
uwsgi_pass unix:/srv/mcweb/ifitlab/ifl.sock;
include /etc/nginx/uwsgi_params; #these also exist in /etc/nginx/
add_header Cache-Control "no-cache, public, must-revalidate, proxy-revalidate";
}