Skip to content

Commit

Permalink
Merge pull request #629 from PyLops/dev
Browse files Browse the repository at this point in the history
v2.4.0
  • Loading branch information
mrava87 authored Dec 11, 2024
2 parents 7c58f0f + c37664b commit 9964a04
Show file tree
Hide file tree
Showing 66 changed files with 2,613 additions and 303 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ jobs:
run: |
python -m pip install --upgrade pip setuptools
pip install flake8 pytest
if [ -f requirements.txt ]; then pip install -r requirements-dev.txt; fi
pip install -r requirements-dev.txt
pip install -r requirements-torch.txt
- name: Install pylops
run: |
python -m setuptools_scm
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/codacy-coverage-reporter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install flake8 pytest
if [ -f requirements.txt ]; then pip install -r requirements-dev.txt; fi
pip install -r requirements-dev.txt
pip install -r requirements-torch.txt
- name: Install pylops
run: |
pip install .
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ build
dist
pylops.egg-info/
.eggs/
__pycache__

# setuptools_scm generated #
pylops/version.py
Expand Down
1 change: 1 addition & 0 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,6 @@ sphinx:
python:
install:
- requirements: requirements-doc.txt
- requirements: requirements-torch.txt
- method: pip
path: .
12 changes: 9 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,18 @@
Changelog
=========

# 2.4.0
* Added `pylops.signalprocessing.FourierRadon2d` and
`pylops.signalprocessing.FourierRadon3d` operators
* Added `pylops.PyTensorOperator` operator
* Added `pylops.ToCupy` operator
* Added `pylops.utils.seismicevents.parabolic3d` method
* Fix bug in `pylops.Restriction` when passing iava as cupy array

# 2.3.1
* Fixed bug in :py:mod:`pylops.utils.backend` (see [Issue #606](https://github.com/PyLops/pylops/issues/606))
* Fixed bug in `pylops.utils.backend` (see [Issue #606](https://github.com/PyLops/pylops/issues/606))

# 2.3.0

* Added `pylops.JaxOperator`, `pylops.signalprocessing.DWTND`, and `pylops.signalprocessing.DTCWT` operators.
* Added `updatesrc` method to `pylops.waveeqprocessing.AcousticWave2D`.
* Added `verb` to `pylops.signalprocessing.Sliding1D.sliding1d_design`, `pylops.signalprocessing.Sliding2D.sliding2d_design`, `pylops.signalprocessing.Sliding3D.sliding3d_design`, `pylops.signalprocessing.Patch2D.patch2d_design`, and `pylops.signalprocessing.Patch3D.patch3d_design`.
Expand All @@ -29,7 +36,6 @@ is now unmantained and merged into `cupy`).


# 2.2.0

* Added `pylops.signalprocessing.NonStationaryConvolve3D` operator
* Added nd-array capabilities to `pylops.basicoperators.Identity` and `pylops.basicoperators.Zero`
* Added second implementation in `pylops.waveeqprocessing.BlendingContinuous` which is more
Expand Down
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ install:

dev-install:
make pipcheck
$(PIP) install -r requirements-dev.txt && $(PIP) install -e .
$(PIP) install -r requirements-dev.txt &&\
$(PIP) install -r requirements-torch.txt && $(PIP) install -e .

install_conda:
conda env create -f environment.yml && conda activate pylops && pip install .
Expand Down
2 changes: 2 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ jobs:
- script: |
python -m pip install --upgrade pip setuptools wheel django
pip install -r requirements-dev.txt
pip install -r requirements-torch.txt
pip install .
displayName: 'Install prerequisites and library'
Expand Down Expand Up @@ -90,6 +91,7 @@ jobs:
- script: |
python -m pip install --upgrade pip setuptools wheel django
pip install -r requirements-dev.txt
pip install -r requirements-torch.txt
pip install .
displayName: 'Install prerequisites and library'
Expand Down
Binary file added docs/source/_static/cupy_diagram.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/source/_static/numpy_cupy_bd_diagram.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/source/_static/numpy_cupy_vs_diagram.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions docs/source/api/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ Templates
LinearOperator
FunctionOperator
MemoizeOperator
PyTensorOperator
TorchOperator
JaxOperator

Expand Down Expand Up @@ -62,6 +63,8 @@ Basic operators
Real
Imag
Conj
ToCupy


Smoothing and derivatives
~~~~~~~~~~~~~~~~~~~~~~~~~
Expand Down Expand Up @@ -109,6 +112,8 @@ Signal processing
Seislet
Radon2D
Radon3D
FourierRadon2D
FourierRadon3D
ChirpRadon2D
ChirpRadon3D
Sliding1D
Expand Down
1 change: 1 addition & 0 deletions docs/source/api/others.rst
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ Synthetics
seismicevents.parabolic2d
seismicevents.hyperbolic2d
seismicevents.linear3d
seismicevents.parabolic3d
seismicevents.hyperbolic3d

.. currentmodule:: pylops.waveeqprocessing
Expand Down
14 changes: 13 additions & 1 deletion docs/source/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,19 @@
Changelog
=========

Version 2.4.0
-------------

*Released on: 11/12/2024*

* Added :py:class:`pylops.signalprocessing.FourierRadon2d` and
:py:class:`pylops.signalprocessing.FourierRadon3d` operators
* Added :py:class:`pylops.PyTensorOperator` operator
* Added :py:class:`pylops.ToCupy` operator
* Added :py:class:`pylops.utils.seismicevents.parabolic3d` method
* Fix bug in :py:class:`pylops.Restriction` when passing iava as cupy array


Version 2.3.1
-------------

Expand Down Expand Up @@ -511,7 +523,7 @@ Version 1.3.0
* Added :py:func:`pylops.optimization.sparsity.ISTA` and
:py:func:`pylops.optimization.sparsity.FISTA` sparse solvers
* Added possibility to broadcast (handle multi-dimensional arrays)
to :py:class:`pylops.Diagonal` and :py:func:`pylops..Restriction` operators
to :py:class:`pylops.Diagonal` and :py:class:`pylops.Restriction` operators
* Added :py:class:`pylops.signalprocessing.Interp` operator
* Added :py:class:`pylops.Spread` operator
* Added :py:class:`pylops.signalprocessing.Radon2D` operator
Expand Down
19 changes: 11 additions & 8 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
# -*- coding: utf-8 -*-
import sys
import os
import datetime
import os
import sys

from sphinx_gallery.sorting import ExampleTitleSortKey

from pylops import __version__

# Sphinx needs to be able to import the package to use autodoc and get the version number
Expand Down Expand Up @@ -37,6 +39,8 @@
"matplotlib": ("https://matplotlib.org/", None),
"pyfftw": ("https://pyfftw.readthedocs.io/en/latest/", None),
"spgl1": ("https://spgl1.readthedocs.io/en/latest/", None),
"pymc": ("https://www.pymc.io/", None),
"arviz": ("https://python.arviz.org/en/latest/", None),
}

# Generate autodoc stubs with summaries from code
Expand Down Expand Up @@ -103,9 +107,7 @@
# These enable substitutions using |variable| in the rst files
rst_epilog = """
.. |year| replace:: {year}
""".format(
year=year
)
""".format(year=year)
html_static_path = ["_static"]
html_last_updated_fmt = "%b %d, %Y"
html_title = "PyLops"
Expand All @@ -122,15 +124,16 @@
# Theme config
html_theme = "pydata_sphinx_theme"
html_theme_options = {
"logo_only": True,
"display_version": True,
"github_url": "https://github.com/PyLops/pylops",
# "logo_only": True,
# "display_version": True,
"logo": {
"image_light": "pylops_b.png",
"image_dark": "pylops.png",
}
}
html_css_files = [
'css/custom.css',
"css/custom.css",
]

html_context = {
Expand Down
Loading

0 comments on commit 9964a04

Please sign in to comment.