Skip to content

Commit

Permalink
Update the environment files and install instructions (#196)
Browse files Browse the repository at this point in the history
* make more up to date conda `environment.yml` file, split test requirements

* update install instructions

* add pillow, upper pin scipy

* add s1reader to env

* activate env before pip installing

Co-authored-by: Liang Yu <[email protected]>

* typos and make `getting-started` match README

---------

Co-authored-by: Liang Yu <[email protected]>
  • Loading branch information
scottstanie and LiangJYu authored Aug 8, 2023
1 parent aa75180 commit 7d7fc9d
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 25 deletions.
18 changes: 6 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,25 +8,19 @@ COregistered Multi-temPorAl Sar Slc

The following will install COMPASS into a conda environment.

1. Download source code:

```bash
git clone https://github.com/opera-adt/COMPASS.git
conda install -c conda-forge compass
```

2. Install dependencies:
Alternatively, you can install in development mode:

```bash
conda install -c conda-forge --file COMPASS/requirements.txt
python -m pip install git+https://github.com/opera-adt/s1-reader.git
git clone https://github.com/opera-adt/COMPASS.git && cd COMPASS
conda env create --file environment.yml
conda activate compass
python -m pip install -e .
```

3. Install `COMPASS` via pip:

```bash
# run "pip install -e" to install in development mode
python -m pip install ./COMPASS
```

### Usage

Expand Down
20 changes: 7 additions & 13 deletions docs/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,19 @@

The following will install COMPASS into a conda environment.

1. Download source code:

```bash
git clone https://github.com/opera-adt/COMPASS.git
conda install -c conda-forge compass
```

2. Install dependencies:

```bash
conda install -c conda-forge --file COMPASS/requirements.txt
python -m pip install git+https://github.com/opera-adt/s1-reader.git
```

3. Install `COMPASS` via pip:
Alternatively, you can install in development mode:

```bash
# run "pip install -e" to install in development mode
python -m pip install ./COMPASS
```
git clone https://github.com/opera-adt/COMPASS.git && cd COMPASS
conda env create --file environment.yml
conda activate compass
python -m pip install -e .
```

## Usage

Expand Down
19 changes: 19 additions & 0 deletions environment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: compass
channels:
- conda-forge
dependencies:
- python>=3.8
- numpy>=1.20
- gdal>=3.3
- isce3>=0.14.0
- pandas>=1.4
- pillow>=7.0
- pyproj>=3.3
- pysolid>=0.3
- ruamel.yaml>=0.15
- scipy>=1.0,<1.13
- yamale>=4.0
- h5py>=3.5
- s1reader>=0.2.0
- shapely>=1.8
- requests>=2.0
2 changes: 2 additions & 0 deletions tests/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
pytest
pytest-order

0 comments on commit 7d7fc9d

Please sign in to comment.