Skip to content

Commit

Permalink
Merge branch 'feature/2x2-event-display' of github.com:DUNE/ndlar_flo…
Browse files Browse the repository at this point in the history
…w into feature/2x2-event-display
  • Loading branch information
marjoleinvannuland committed Jun 13, 2024
2 parents a6a47a7 + c8c04e2 commit 40b1b15
Showing 1 changed file with 73 additions and 0 deletions.
73 changes: 73 additions & 0 deletions event_display/interactive_event_display/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
# Interactive Event Display Setup and Usage

This README provides instructions on how to set up and run the `interactive event display` application on the NERSC system (`perlmutter.nersc.gov`). This interactive event display tool is developed for visualizing simulations and data for the 2x2 demonstrator (and single modules).

## Overview

The `event display` requires specific setup steps to ensure all dependencies are installed. This README provides a step-by-step guide for the setup on NERSC. If you want to run the event display locally instead, there are some indicated steps you can skip.

## Setup Instructions

### Prerequisites

Before setting up, ensure you have the following prerequisites installed:

- SSH client for tunneling (`ssh`)
- Git for cloning repositories (`git`)
- Python environment management tool (`conda`)
- MPI compiler (`mpicc`)

### Setup Steps
0. **Log on to NERSC (skip for running locally)**:

```bash
ssh -L 9999:localhost:8080 [email protected]
```

1. **Clone Repositories**:
Make sure you have git set up (on NERSC) before you try this

```bash
git clone [email protected]:DUNE/ndlar_flow.git
git clone [email protected]:lbl-neutrino/h5flow.git
```

2. **Checkout Branch**:

```bash
cd ndlar_flow
git checkout feature/2x2-event-display
cd ..
```

3. **Setup conda environment**:

```bash
module load python # skip this if not on NERSC
conda create -n myenv pip
conda activate myenv
```

4. **Install h5flow with MPI support**:

```bash
cd h5flow
export CC=mpicc
export HDF5_MPI="ON"
pip install .
```

5. **Install Requirements**:

```bash
cd ../ndlar_flow/event_display/interactive_event_display
pip install -r requirements.txt
```

6. **Running the application**:

```bash
python app.py
```

Now, you can locally access the event display by going to `localhost:9999` in the browser, or, if you are not on NERSC, by going to `localhost:8080`. Use the file upload or provide a path to a flow file (on nersc), and optionally provide a minerva file path to plot matching minerva tracks.

0 comments on commit 40b1b15

Please sign in to comment.