Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
nifty_tutorial
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ift
nifty_tutorial
Commits
17c200f3
Commit
17c200f3
authored
5 years ago
by
Philipp Arras
Browse files
Options
Downloads
Patches
Plain Diff
Readme
parent
c3484b07
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Dockerfile
+1
-1
1 addition, 1 deletion
Dockerfile
README.md
+59
-0
59 additions, 0 deletions
README.md
with
60 additions
and
1 deletion
Dockerfile
+
1
−
1
View file @
17c200f3
...
...
@@ -6,7 +6,7 @@ RUN apt-get update && apt-get install -y \
git python3-pip
\
python3-scipy
\
python3-matplotlib
\
&&
pip3
install
git+https://gitlab.mpcdf.mpg.de/mtr/pypocketfft.git
@c959e87dd69918fd63ff971fa2eebea99388a43c
\
&&
pip3
install
git+https://gitlab.mpcdf.mpg.de/mtr/pypocketfft.git
\
&&
rm
-rf
/var/lib/apt/lists/
*
RUN
cd
/root
\
...
...
This diff is collapsed.
Click to expand it.
README.md
0 → 100644
+
59
−
0
View file @
17c200f3
# Installation
There are two methods to install the environment which is needed for following
the NIFTy tutorial. First, install it regularly into the home folder of your
machine. Second, use a Docker container. The advantage of the second approach is
that it is going to work without any problems most likely. Its downsides are:
Root access to start the Docker container (security implications), a full Docker
installation (security implications), you need to be familiar with Docker in
order to get your results out of the container.
## Standard
-
Install git, python3 and python3-pip, python3-scipy, python3-matplotlib. On
Debian-based systems possibly:
```
# apt-get update
# apt-get install git python3-pip python3-scipy python3-matplotlib
```
-
Install our Fouier transform package
`pypocketfft`
:
```
$ pip3 install git+https://gitlab.mpcdf.mpg.de/mtr/pypocketfft.git
```
-
Clone this repository:
```
$ git clone --recursive https://gitlab.mpcdf.mpg.de/ift/nifty_tutorial.git
```
-
Install
`nifty`
:
```
$ cd nifty_tutorial/nifty
$ python3 nifty_tutorial/nifty/setup.py install -f
```
## Docker
-
Build the image:
```
$ git clone https://gitlab.mpcdf.mpg.de/ift/nifty_tutorial.git
# docker build -t niftytutorial .
```
-
Start a container and mount your local folder
`/mnt`
into the folder
`/mnt`
in
the container. Do this only if you know what you are doing!
```
# docker run -v /mnt:/mnt -it niftytutorial
```
## Double-check the installation
Run the scripts
`*_solution.py`
from the repository, check that they run through
and look at the output plots.
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment