Skip to content

Commit cb44937

Browse files
authored
Notebooks (#55)
* Fixed PYRO_HOME issues * updated travis file
1 parent f1205d4 commit cb44937

5 files changed

Lines changed: 8 additions & 5 deletions

File tree

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ install:
1818

1919
before_script:
2020
- export PYTHONPATH=$PYTHONPATH:$(pwd)
21+
- export PYRO_HOME=$(pwd)
2122
- ./mk.sh
2223

2324
script:

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ http://python-hydro.github.io/pyro2/
7777
directory.
7878

7979
* Define the environment variable `PYRO_HOME` to point to the
80-
`pyro2/` directory (only needed to regression testing)
80+
`pyro2/` directory
8181

8282
* Build the Fortran source. In `pyro2/` type
8383

docs/source/installation.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ The following steps are needed before running pyro:
3636
./mk.sh
3737
3838
* define the environment variable ``PYRO_HOME`` to point to
39-
the ``pyro2/`` directory (only needed for regression testing)
39+
the ``pyro2/`` directory
4040

4141
.. code-block:: none
4242

examples/examples.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -271,14 +271,14 @@
271271
" 11 1.00000 0.00000\n",
272272
"\u001b[33moutputting...\u001b[0m\n",
273273
"\u001b[33moutputting...\u001b[0m\n",
274-
"vis: 0.25238776206970215\n",
275-
"main: 0.08136248588562012\n"
274+
"vis: 0.2423102855682373\n",
275+
"main: 0.07352924346923828\n"
276276
]
277277
},
278278
{
279279
"data": {
280280
"text/plain": [
281-
"<advection.simulation.Simulation at 0x7fb6c2488ba8>"
281+
"<advection.simulation.Simulation at 0x7f293ebf2390>"
282282
]
283283
},
284284
"execution_count": 9,

pyro.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ def __init__(self, solver_name):
4646
if solver_name not in valid_solvers:
4747
msg.fail("ERROR: %s is not a valid solver" % solver_name)
4848

49+
os.chdir(os.environ["PYRO_HOME"])
50+
4951
# import desired solver under "solver" namespace
5052
self.solver = importlib.import_module(solver_name)
5153
self.solver_name = solver_name

0 commit comments

Comments
 (0)