Skip to content

Commit 451164f

Browse files
authored
Merge pull request #129 from mrava87/readmeconda
Updated README and documentation with conda-forge install
2 parents 8404c3c + ef29cb6 commit 451164f

File tree

2 files changed

+33
-25
lines changed

2 files changed

+33
-25
lines changed

README.md

Lines changed: 13 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,14 @@
22

33
[![PyPI version](https://badge.fury.io/py/pyproximal.svg)](https://badge.fury.io/py/pyproximal)
44
[![Build Status](https://travis-ci.com/PyLops/pyproximal.svg?branch=main)](https://travis-ci.com/PyLops/pyproximal)
5-
[![AzureDevOps Status](https://dev.azure.com/matteoravasi/PyLops/_apis/build/status/PyLops.pyproximal?branchName=main)](https://dev.azure.com/matteoravasi/PyLops/_build/latest?definitionId=10&branchName=main)
5+
[![AzureDevOps Status](https://dev.azure.com/matteoravasi/PyLops/_apis/build/status%2FPyLops.pyproximal?branchName=refs%2Fpull%2F129%2Fmerge)](https://dev.azure.com/matteoravasi/PyLops/_build/latest?definitionId=10&branchName=refs%2Fpull%2F129%2Fmerge)
66
![GithubAction Status](https://github.com/PyLops/pyproximal/workflows/PyProx/badge.svg)
77
[![Documentation Status](https://readthedocs.org/projects/pyproximal/badge/?version=latest)](https://pyproximal.readthedocs.io/en/latest/?badge=latest)
88
[![OS-support](https://img.shields.io/badge/OS-linux,osx-850A8B.svg)](https://github.com/PyLops/pyproximal)
99
[![Slack Status](https://img.shields.io/badge/chat-slack-green.svg)](https://pylops.slack.com)
1010

1111

12+
1213
:vertical_traffic_light: :vertical_traffic_light: This library is under early development.
1314
Expect things to constantly change until version v1.0.0. :vertical_traffic_light: :vertical_traffic_light:
1415

@@ -75,11 +76,10 @@ xladmm, _ = LinearizedADMM(l2, l1, Dop, tau=tau, mu=mu,
7576
```
7677

7778
## Why another library for proximal algorithms?
78-
7979
Several other projects in the Python ecosystem provide implementations of proximal
8080
operators and/or algorithms, which present some clear overlap with this project.
8181

82-
A (possibly not exahustive) list of other projects is:
82+
A (possibly not exhaustive) list of other projects is:
8383

8484
* http://proximity-operator.net
8585
* https://github.com/ganguli-lab/proxalgs/blob/master/proxalgs/operators.py
@@ -110,39 +110,34 @@ This repository is organized as follows:
110110
* **tutorials**: set of python script tutorials to be embedded in documentation using sphinx-gallery
111111

112112
## Getting started
113-
114113
You need **Python 3.8 or greater**.
115114

116-
*Note: Versions prior to v0.3.0 work alsi with Python 3.6 or greater, however they
115+
*Note: Versions prior to v0.3.0 work also with Python 3.6 or greater, however they
117116
require scipy version to be lower than v1.8.0.*
118117

119-
120118
#### From PyPi
121-
122-
If you want to use PyProximal within your codes,
119+
you want to use PyProximal within your codes,
123120
install it in your Python environment by typing the following command in your terminal:
124121

122+
To get the most out of PyLops straight out of the box, we recommend `conda` to install PyLops:
123+
```bash
124+
conda install -c conda-forge pyproximal
125125
```
126-
pip install pyproximal
127-
```
128-
129-
Open a python terminal and type:
130126

127+
#### From PyPi
128+
You can also install pyproximal with `pip`:
129+
```bash
130+
pip install pylops
131131
```
132-
import pyproximal
133-
```
134-
135132

136133
#### From Github
137-
138-
You can also directly install from the master node (although this is not reccomended)
134+
Finally, you can also directly install from the main branch (although this is not recommended)
139135

140136
```
141137
pip install git+https://[email protected]/PyLops/pyproximal.git@main
142138
```
143139

144140
## Contributing
145-
146141
*Feel like contributing to the project? Adding new operators or tutorial?*
147142

148143
We advise using the [Anaconda Python distribution](https://www.anaconda.com/download)
@@ -151,7 +146,6 @@ the following instructions and read carefully the [CONTRIBUTING](CONTRIBUTING.md
151146
file before getting started.
152147

153148
### 1. Fork and clone the repository
154-
155149
Execute the following command in your terminal:
156150

157151
```

docs/source/installation.rst

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,21 +27,35 @@ is not just a pure stylistic choice but comes with some *hidden* advantages, suc
2727
Step-by-step installation for users
2828
-----------------------------------
2929

30-
Python environment
31-
~~~~~~~~~~~~~~~~~~
30+
Conda (recommended)
31+
===================
32+
If using ``conda``, install our ``conda-forge`` distribution via:
3233

33-
Activate your Python environment, and simply type the following command in your terminal
34-
to install the PyPi distribution:
34+
.. code-block:: bash
35+
36+
>> conda install --channel conda-forge pyproximal
37+
38+
Using the ``conda-forge`` distribution is recommended as all the dependencies (both required
39+
and optional) will be automatically installed for you.
40+
41+
Pip
42+
===
43+
If you are using ``pip``, and simply type the following command in your terminal
44+
to install the PyPI distribution:
3545

3646
.. code-block:: bash
3747
3848
>> pip install pyproximal
3949
40-
Alternatively, to access the latest source from github:
50+
Note that when installing via ``pip``, only *required* dependencies are installed.
51+
52+
From Source
53+
===========
54+
To access the latest source from github:
4155

4256
.. code-block:: bash
4357
44-
>> pip install https://github.com/PyLops/pyproximal/archive/master.zip
58+
>> pip install https://github.com/PyLops/pyproximal.git@main
4559
4660
or just clone the repository
4761

0 commit comments

Comments
 (0)