Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: More docs #224

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion aiidalab_ispg/app/conformers.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
https://sourceforge.net/p/rdkit/mailman/rdkit-discuss/thread/CWLP265MB0818A57240D003F146E910798C680%40CWLP265MB0818.GBRP265.PROD.OUTLOOK.COM/#msg36584689

Authors:
* Daniel Hollas <daniel.hollas@durham.ac.uk>
* Daniel Hollas <daniel.hollas@bristol.ac.uk>
"""

from enum import Enum, unique
Expand Down
Empty file added docs/custom.css
Empty file.
6 changes: 6 additions & 0 deletions docs/custom_theme/no_toc.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{% extends "base.html" %}

{% block content %}
<div class="col-md-1"></div>
<div class="col-md-11" role="main">{% include "content.html" %}</div>
{% endblock %}
50 changes: 11 additions & 39 deletions docs/index.md
Original file line number Diff line number Diff line change
@@ -1,49 +1,21 @@
# Welcome to ATMOSPEC
---
template: no_toc.html
---

**WARNING: This documentation is a work in progress, please check back later. :-)**
## ATMOSPEC

Welcome to the ATMOSPEC documentation!
For a quick intro to how the program looks and works, take a look at this [short screencast](https://youtu.be/1ePj1hhOFdw).

## Installation

### Install dependencies
0. [Install ORCA](https://www.orcasoftware.de/tutorials_orca/first_steps/install.html)

NOTE: If you're downloading for Linux, choose the "shared-version", which has much smaller download size.

1. [Install Docker](https://docs.docker.com/engine/install/#server)

```console
sudo apt install docker.io
```
_ab initio_ UV/vis spectroscopy made easy

Then add yourself to the `docker` unix group and restart the shell session
---

```console
sudo usermod -a -G docker $USER
```
**This documentation is a work in progress, please check back later. :-)**

2. Install pipx

```console
sudo apt install python-venv pipx
```

3. Install `aiidalab-launch` to manage the AiiDAlab containers

```console
pipx install aiidalab-launch
```

If pipx is giving you trouble, you should be able to install via pip as well.

TODO: Take this from README
For a quick intro to how the program looks and works, take a look at this [short screencast](https://youtu.be/1ePj1hhOFdw).

## Quick guide
### Quick guide

TODO: Screenshots here

## Acknowledgements
### Acknowledgements

This project has been funded by European Research Council (ERC) under the European Union’s Horizon 2020 research and innovation programme (Grant agreement No. 803718, [project SINDAM](https://cordis.europa.eu/project/id/803718)), and the EPSRC Grant EP/V026690/1 [UPDICE](https://updiceproject.com).
This open source software was released under the MIT license and has been funded by European Research Council (ERC) under the European Union’s Horizon 2020 research and innovation programme (Grant agreement No. 803718, [project SINDAM](https://cordis.europa.eu/project/id/803718)), and the EPSRC Grant EP/V026690/1 [UPDICE](https://updiceproject.com).
123 changes: 123 additions & 0 deletions docs/install.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,123 @@

# Installation

## Requirements

ATMOSPEC requires a Linux machine, but should also work on older x86 Macs.
If you're interested in Mac ARM (M1/M2) support, let us know!

## Install dependencies

NOTE: The details of some of the commands will depend on your
OS and its version. The concrete examples are based on Ubuntu 20.04.


0. [Install ORCA](https://www.orcasoftware.de/tutorials_orca/first_steps/install.html)

NOTE: If you're downloading for Linux, choose the "shared-version", which has much smaller download size.

1. [Install Docker](https://docs.docker.com/engine/install/#server)

```console
sudo apt install docker.io
```

Then add yourself to the `docker` unix group and restart the shell session

```console
sudo usermod -a -G docker $USER
```

2. Install pipx

```console
sudo apt install python-venv pipx
```

3. Install `aiidalab-launch` to manage the AiiDAlab containers

```console
pipx install aiidalab-launch
```

If pipx is giving you trouble, you should be able to install via pip as well.

## Download the ATMOSPEC Docker image

```console
docker pull ghcr.io/ispg-group/atmospec:latest
```

This image is built and published in a separate Github repository,
which you can visit [for more information](https://github.com/ispg-group/aiidalab-ispg-docker-stack#readme).


### Setup AiiDAlab launch

While you can launch the Docker container directly using the `docker` command,
it is much more convenient to use the [aiidalab-launch application](https://github.com/aiidalab/aiidalab-launch).

Let's first modify the default profile to include to ATMOSPEC app from this repo

```console
aiidalab-launch profile edit default
```

This should open your default text editor.
Copy-paste the following profile configuration (substitute path to ORCA and the Docker image name if needed)
```
port = 8888
default_apps = [ "aiidalab-ispg@git+https://github.com/ispg-group/aiidalab-ispg.git@main",]
system_user = "jovyan"
image = "ghcr.io/ispg-group/atmospec:latest"
home_mount = "aiidalab_atmospec_home"
extra_mounts = ["/absolute/path/to/orca/:/opt/orca:ro",]
```

With this configuration, all the data will be stored in a separate Docker volume `aiidalab_atmospec_home`.
Alternatively, you can specify the absolute path to a directory in your file system to store the data, for example

```
home_mount = "/home/username/aiidalab_atmospec_home/"
```

## Launch and manage container

- Launch the container

```console
aiidalab-launch start
```

This command will print the URL that you can then access in the browser.
With the configuration above it should be `http://localhost:8888`

- Stop the container

```console
aiidalab-launch stop
```

- Print container status

```console
aiidalab-launch status
```

- Run a command inside a running container

```console
aiidalab-launch exec -- <command>
```

- Entering the container

```console
docker exec -it -u jovyan aiidalab_atmospec /bin/bash
```

To display all available commands

```console
aiidalab-launch --help
```
Binary file added img/EPSRC_logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
site_name: Atmospec Docs
site_author: "Daniel Hollas"
extra_css:
- custom.css
theme:
name: mkdocs
custom_dir: docs/custom_theme/