Commit 1422f8f1 authored by Ambra Di Piano's avatar Ambra Di Piano
Browse files

Merge branch 'main' of github.com:ambra-dipiano/astroRT into simulator

parents 9d0a4d73 237f8bcd
Loading
Loading
Loading
Loading
+62 −2
Original line number Original line Diff line number Diff line
# astroRT
# astroRT


## Environment
To clone the repository you may do the following:

```bash
git clone --recurse-submodules git@github.com:ambra-dipiano/astroRT.git
```


## Environment
To create a virtual environment with all required dependencies:
To create a virtual environment with all required dependencies:


```bash
```bash
@@ -16,13 +21,68 @@ conda activate astrort
pip install .
pip install .
```
```


To install editable version use instead:
Alternatively you can try creating a `venv` environment. Note that you will require to install `cfitsio`, `gammalib` and `ctools` from source.

To cerate the environment:
```bash
python -m venv astrort
source astrort/bin/activate
```

Now you need to download and install `cfitsio`:
```bash
wget https://heasarc.gsfc.nasa.gov/FTP/software/fitsio/c/cfitsio-4.3.1.tar.gz
tar zxvf cfitsio-4.3.1.tar.gz
cd cfitsio-4.3.1
./configure --prefix=/path/to/venv/astrort
make
make install
make clean
```

Now you need to download and install `gammalib`:
```bash
wget http://cta.irap.omp.eu/ctools/releases/gammalib/gammalib-2.0.0.tar.gz
tar zxvf gammalib-2.0.0.tar.gz
cd gammalib-2.0.0
./configure --prefix=/path/to/venv/astrort
make
make install
make clean
```

Now you need to download and install `ctools`:
```bash
wget http://cta.irap.omp.eu/ctools/releases/gammalib/ctools-2.0.0.tar.gz
tar zxvf ctools-2.0.0.tar.gz
cd ctools-2.0.0
./configure --prefix=/path/to/venv/astrort
make
make install
make clean
```

Once this has been done, you may complete the environment with:

```bash
python -m pip install -r requirements.txt
```

## Installation
You may install the software with pip:

```bash
pip install -e .
```

To install an editable version use instead:


```bash
```bash
pip install -e .
pip install -e .
```
```


# Submodules
# Submodules
This software includes submodules.


## rtasci
## rtasci


requirements.txt

0 → 100644
+29 −0
Original line number Original line Diff line number Diff line
astropy==6.0.0
astropy-iers-data==0.2023.12.4.0.30.20
contourpy==1.2.0
ctools==2.0.0
cycler==0.12.1
exceptiongroup==1.2.0
fonttools==4.46.0
gammalib==2.0.0
importlib-resources==6.1.1
iniconfig==2.0.0
kiwisolver==1.4.5
lxml==4.9.3
matplotlib==3.8.2
numpy==1.26.2
packaging==23.2
pandas==2.1.3
Pillow==10.1.0
pluggy==1.3.0
pyerfa==2.0.1.1
pyparsing==3.1.1
pytest==7.4.3
python-dateutil==2.8.2
pytz==2023.3.post1
PyYAML==6.0.1
scipy==1.11.4
six==1.16.0
tomli==2.0.1
tzdata==2023.3
zipp==3.17.0