Skip to content

Commit

Permalink
updated requirements for docker build
Browse files Browse the repository at this point in the history
  • Loading branch information
din14970 committed Mar 7, 2022
1 parent 411d1ed commit 2117c83
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 18 deletions.
16 changes: 8 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -42,19 +42,19 @@ RUN conda init bash && \
matplotlib-scalebar=0.7.2 \
scikit-learn=0.24.2 \
lmfit=1.0.2 \
numpy=1.21.2 \
numba=0.53.1 \
numpy=1.20.3 \
numba=0.55.1 \
psutil=5.8.0 \
ipywidgets=7.6.5 \
ipyevents=2.0.1 \
scipy=1.7.1 \
diffpy.structure=3.0.1 \
tqdm=4.62.2 \
transforms3d=0.3.1 \
orix=0.7.0 \
dask=2021.7.1 \
orix=0.8.2 \
dask=2021.9.1 \
h5py=3.3.0 \
hyperspy=1.6.4 \
hyperspy=1.6.5 \
pywget=3.2 \
vtk=9.0.3

Expand All @@ -66,12 +66,12 @@ RUN conda init bash && . /root/.bashrc && conda activate venv && \

# installing the custom packages
RUN conda init bash && . /root/.bashrc && conda activate venv && \
git clone https://github.com/din14970/diffsims.git \
&& cd diffsims && git checkout 29b0715 && pip install -e .
git clone https://github.com/pyxem/diffsims.git \
&& cd diffsims && git checkout 2b75329 && pip install -e .

RUN conda init bash && . /root/.bashrc && conda activate venv && \
git clone https://github.com/pyxem/pyxem.git \
&& cd pyxem && git checkout ca4f58de && pip install -e .
&& cd pyxem && git checkout 30ddc1f5 && pip install -e .

# Add Tini
ENV TINI_VERSION v0.19.0
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ In order to save you some time I have already included an `environment.yml` file

5. Go out of this folder and clone the repositories for pyxem and diffsims
```
$ git clone https://github.com/din14970/diffsims.git
$ git clone https://github.com/pyxem/diffsims.git
```

and
Expand All @@ -85,19 +85,19 @@ In order to save you some time I have already included an `environment.yml` file
```
$ conda activate pyxenv
$ cd diffsims
$ git checkout 29b0715
$ git checkout 2b75329
$ python3 -m pip install -e .
$ cd ../pyxem
$ git checkout ca4f58de
$ git checkout 30ddc1f5
$ python3 -m pip install -e .
```
These steps are necessary because the notebooks use specific features which have not yet been packaged into an official version of the software.

7. You should now be able to launch a Jupyter notebook server with `$ jupyter notebook` and open and run the notebooks. Always ensure the virtual environment is active.

If you want GPU acceleration to work you will need to also install `cupy` with a version >9.0.0.
Additionally you may have to install the appropriate NVIDIA drivers.
Additionally you may have to install the appropriate NVIDIA drivers and the cuda toolkit.
If you can import `cupy` in a notebook and create an array with `cupy.array([1, 2, 3])` without errors, the GPU acceleration should work.

If Mayavi doesn't work on your system you may have to do some digging on required system packages.
Pyxem does not rely on Mayavi, only one image uses this package.
Pyxem does not rely on Mayavi, only one image from the paper relies on this package.
10 changes: 5 additions & 5 deletions environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,19 @@ dependencies:
- matplotlib-scalebar=0.7.2
- scikit-learn=0.24.2
- lmfit=1.0.2
- numpy=1.21.2
- numba=0.53.1
- numpy=1.20.3
- numba=0.55.1
- psutil=5.8.0
- ipywidgets=7.6.5
- ipyevents=2.0.1
- scipy=1.7.1
- diffpy.structure=3.0.1
- tqdm=4.62.2
- transforms3d=0.3.1
- orix=0.7.0
- dask=2021.7.1
- orix=0.8.2
- dask=2021.9.1
- h5py=3.3.0
- hyperspy=1.6.4
- hyperspy=1.6.5
- pywget=3.2
- vtk=9.0.3
- mayavi=4.7.2

0 comments on commit 2117c83

Please sign in to comment.