Skip to content

Commit

Permalink
Fix paths and names in python examples
Browse files Browse the repository at this point in the history
  • Loading branch information
cnweaver committed Feb 17, 2021
1 parent ae6a14e commit 5473a78
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion binder/postBuild
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ export PREFIX=$CONDA_DEFAULT_ENV
git clone https://github.com/jsalvado/SQuIDS.git $HOME/SQuIDS;
cd $HOME/SQuIDS; ./configure --prefix=$HOME/software --with-gsl-incdir=$PREFIX/include --with-gsl-libdir=$PREFIX/lib; export LD_LIBRARY_PATH=$PREFIX/lib:$LD_LIBRARY_PATH; make; make test; make install; cd -;
export LD_LIBRARY_PATH="$HOME/software/lib"
./configure --prefix=$HOME/software --with-python-bindings --with-boost=$PREFIX/ --with-gsl=$PREFIX --with-squids=$HOME/software --python-bin=python; make; make test; make install; cd resources/python/src; make;
./configure --prefix=$HOME/software --with-python-bindings --with-boost=$PREFIX/ --with-gsl=$PREFIX --with-squids=$HOME/software --python-bin=python; make python; make test; make install;
2 changes: 1 addition & 1 deletion binder/start
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export PKG_CONFIG_PATH="$HOME/software/lib/pkgconfig:$PKG_CONFIG_PATH";
export PYTHONPATH=$HOME/resources/python/bindings/:$PYTHONPATH
export PYTHONPATH=$HOME/lib:$HOME/resources/python/bindings:$PYTHONPATH
export LD_LIBRARY_PATH="$HOME/software/lib":"/srv/conda/envs/notebook"
echo $PYTHONPATH
exec "$@"
2 changes: 1 addition & 1 deletion resources/python/bindings/nuSQUIDSTools.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from __future__ import print_function
import numpy as np
import matplotlib.pyplot as plt
import nuSQUIDS as nsq
import nuSQuIDS as nsq

# we will use the boost injector metaclass

Expand Down
4 changes: 2 additions & 2 deletions resources/python/example/nuSQUIDS-DEMO.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"source": [
"%matplotlib inline\n",
"import matplotlib as mpl\n",
"import nuSQUIDSpy as nsq\n",
"import nuSQuIDS as nsq\n",
"import matplotlib.pyplot as plt\n",
"\n",
"import nuSQUIDSTools\n",
Expand Down Expand Up @@ -472,7 +472,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"#### Propagating in a constant density slap ####"
"#### Propagating in a constant density slab ####"
]
},
{
Expand Down
4 changes: 2 additions & 2 deletions resources/python/example/nuSQUIDS-DEMO.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# # $\nu$-SQuIDS Demo: Welcome!

import matplotlib as mpl
import nuSQUIDSpy as nsq
import nuSQuIDS as nsq
import matplotlib.pyplot as plt

import nuSQUIDSTools
Expand Down Expand Up @@ -185,7 +185,7 @@
plt.ylabel(r"$P(\nu_\mu \to \nu_\mu)$")
plt.plot(energy_values,nu_mu_to_nu_e, lw = 2, color = 'blue')

# #### Propagating in a constant density slap ####
# #### Propagating in a constant density slab ####

nuSQ = nsq.nuSQUIDS(3,nsq.NeutrinoType.neutrino)
nuSQ.Set_Body(nsq.ConstantDensity(13.0,0.5))
Expand Down

0 comments on commit 5473a78

Please sign in to comment.