Commit e330cb89 authored by Manuel Luis Alcazar Laynez's avatar Manuel Luis Alcazar Laynez
Browse files

Specifying both installation methods

parent 0fa20fc3
Loading
Loading
Loading
Loading
+31 −7
Original line number Diff line number Diff line
@@ -39,26 +39,43 @@ Should work with `python >= 3.9`. Feel free to try for lower versions.

## Installation

### Creating a virtual environment
Using a virtual enviroment is recommended to execute this tool:

```bash
cd DIR_GALAssify
python -m venv .env
source .env/bin/activate
```
Now, you can choose installing `GALAssify` by using [PIP](#installing-from-pip) or by cloning this repository for [installing from source](#installing-from-source).

### Installing from PIP
Install and update using [pip](https://pip.pypa.io/en/stable/getting-started/):

- For install with [pyds9](https://github.com/ericmandel/pyds9) support:
```
$ pip install "galassify[ds9] @ git+https://gloton.ugr.es/gitlab/lss/galassify.git"
```

- For standard installation:
```
$ pip install git+https://gloton.ugr.es/gitlab/lss/galassify.git
```

Using a virtual enviroment is recommended to execute this tool:
### Installing from source

First, clone the repository:
```bash
cd DIR_GALAssify
python -m venv .env
source .env/bin/activate
git clone https://gloton.ugr.es/gitlab/lss/galassify.git
cd galassify
```

Install `GALAssify`:
Then, install `GALAssify`:
```bash
pip install .
```

 **NOTE:** The installation could fail with the next message if the package `libxt-dev` is not found in your OS:
### Installation troubleshooting
The installation could fail with the next message if the package `libxt-dev` is not found in your OS:
```bash
xtloop.c:9:10: fatal error: X11/Intrinsic.h: No such file or directory
    9 | #include <X11/Intrinsic.h>
@@ -99,6 +116,13 @@ Additional columns:
- filename: name of the image file to be displayed in the tool. Relative to the image path specified on execution.
- fits: name of the fits file to be displayed in the tool. Relative to the image path specified on execution.

Example: `galaxies.csv`
```csv
group,galaxy,ra,dec,filename
1,15,210.927048,-1.137346,img_1_15_.jpeg
1,254,211.020782,0.998166,img_1_254.jpeg
...
```

## Customizing the tool