Skip to content

Commit

Permalink
Merge branch 'main' into hanna_author
Browse files Browse the repository at this point in the history
  • Loading branch information
billbrod authored Aug 15, 2024
2 parents 04ffce3 + 13602ff commit ed8fc43
Show file tree
Hide file tree
Showing 6 changed files with 267 additions and 75 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,7 @@ src/plenoptic/version.py

# gets created during install
build/

# venv
.venv
venv
12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# plenoptic

[![PyPI Version](https://img.shields.io/pypi/v/plenoptic.svg)](https://pypi.org/project/plenoptic/)
[![Anaconda-Server Badge](https://anaconda.org/conda-forge/plenoptic/badges/version.svg)](https://anaconda.org/conda-forge/plenoptic)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://github.com/LabForComputationalVision/plenoptic/blob/main/LICENSE)
![Python version](https://img.shields.io/badge/python-3.10|3.11|3.12-blue.svg)
[![Build Status](https://github.com/LabForComputationalVision/plenoptic/workflows/build/badge.svg)](https://github.com/LabForComputationalVision/plenoptic/actions?query=workflow%3Abuild)
Expand Down Expand Up @@ -34,12 +35,21 @@ aimed at validating or falsifying model predictions.

### Installation

The best way to install `plenoptic` is via `pip`.
The best way to install `plenoptic` is via `pip`:

``` bash
$ pip install plenoptic
```

or `conda`:

``` bash
$ conda install plenoptic -c conda-forge
```

> [!WARNING]
> We do not currently support conda installs on Windows, due to the lack of a Windows pytorch package on conda-forge. See [here](https://github.com/conda-forge/pytorch-cpu-feedstock/issues/32) for the status of that issue.
Our dependencies include [pytorch](https://pytorch.org/) and
[pyrtools](https://pyrtools.readthedocs.io/en/latest/). Installation should take
care of them (along with our other dependencies) automatically, but if you have
Expand Down
2 changes: 2 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
'sphinx.ext.intersphinx',
'sphinx_copybutton',
'sphinxemoji.sphinxemoji',
'sphinx_inline_tabs'
]

# Add any paths that contain templates here, relative to this directory.
Expand Down Expand Up @@ -94,6 +95,7 @@

numfig = True


# -- Options for HTML output -------------------------------------------------

# The theme to use for HTML and HTML Help pages. See the documentation for
Expand Down
11 changes: 10 additions & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
.. |pypi-shield| image:: https://img.shields.io/pypi/v/plenoptic.svg
:target: https://pypi.org/project/plenoptic/

.. |conda-shield| image:: https://anaconda.org/conda-forge/plenoptic/badges/version.svg
:target: https://anaconda.org/conda-forge/plenoptic

.. |license-shield| image:: https://img.shields.io/badge/license-MIT-yellow.svg
:target: https://github.com/LabForComputationalVision/plenoptic/blob/main/LICENSE

Expand Down Expand Up @@ -28,7 +31,7 @@ plenoptic
*********
.. _index:

|pypi-shield| |license-shield| |python-version-shield| |build| |zenodo| |codecov| |binder|
|pypi-shield| |conda-shield| |license-shield| |python-version-shield| |build| |zenodo| |codecov| |binder|


.. image:: images/plenoptic_logo_wide.svg
Expand All @@ -53,6 +56,12 @@ The best way to install ``plenoptic`` is via ``pip``::

$ pip install plenoptic

or ``conda``::

$ conda install plenoptic -c conda-forge

.. warning:: We do not currently support conda installs on Windows, due to the lack of a Windows pytorch package on conda-forge. See `here <https://github.com/conda-forge/pytorch-cpu-feedstock/issues/32>`_ for the status of that issue.

See the :ref:`install` page for more details, including how to set up an isolated
virtual environment (recommended).

Expand Down
Loading

0 comments on commit ed8fc43

Please sign in to comment.