Skip to content

Commit 9964a04

Browse files
authored
Merge pull request #629 from PyLops/dev
v2.4.0
2 parents 7c58f0f + c37664b commit 9964a04

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+2613
-303
lines changed

.github/workflows/build.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ jobs:
2424
run: |
2525
python -m pip install --upgrade pip setuptools
2626
pip install flake8 pytest
27-
if [ -f requirements.txt ]; then pip install -r requirements-dev.txt; fi
27+
pip install -r requirements-dev.txt
28+
pip install -r requirements-torch.txt
2829
- name: Install pylops
2930
run: |
3031
python -m setuptools_scm

.github/workflows/codacy-coverage-reporter.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ jobs:
2626
run: |
2727
python -m pip install --upgrade pip
2828
pip install flake8 pytest
29-
if [ -f requirements.txt ]; then pip install -r requirements-dev.txt; fi
29+
pip install -r requirements-dev.txt
30+
pip install -r requirements-torch.txt
3031
- name: Install pylops
3132
run: |
3233
pip install .

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ build
1717
dist
1818
pylops.egg-info/
1919
.eggs/
20+
__pycache__
2021

2122
# setuptools_scm generated #
2223
pylops/version.py

.readthedocs.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,6 @@ sphinx:
1919
python:
2020
install:
2121
- requirements: requirements-doc.txt
22+
- requirements: requirements-torch.txt
2223
- method: pip
2324
path: .

CHANGELOG.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,18 @@
11
Changelog
22
=========
33

4+
# 2.4.0
5+
* Added `pylops.signalprocessing.FourierRadon2d` and
6+
`pylops.signalprocessing.FourierRadon3d` operators
7+
* Added `pylops.PyTensorOperator` operator
8+
* Added `pylops.ToCupy` operator
9+
* Added `pylops.utils.seismicevents.parabolic3d` method
10+
* Fix bug in `pylops.Restriction` when passing iava as cupy array
11+
412
# 2.3.1
5-
* Fixed bug in :py:mod:`pylops.utils.backend` (see [Issue #606](https://github.com/PyLops/pylops/issues/606))
13+
* Fixed bug in `pylops.utils.backend` (see [Issue #606](https://github.com/PyLops/pylops/issues/606))
614

715
# 2.3.0
8-
916
* Added `pylops.JaxOperator`, `pylops.signalprocessing.DWTND`, and `pylops.signalprocessing.DTCWT` operators.
1017
* Added `updatesrc` method to `pylops.waveeqprocessing.AcousticWave2D`.
1118
* 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`.
@@ -29,7 +36,6 @@ is now unmantained and merged into `cupy`).
2936

3037

3138
# 2.2.0
32-
3339
* Added `pylops.signalprocessing.NonStationaryConvolve3D` operator
3440
* Added nd-array capabilities to `pylops.basicoperators.Identity` and `pylops.basicoperators.Zero`
3541
* Added second implementation in `pylops.waveeqprocessing.BlendingContinuous` which is more

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ install:
2121

2222
dev-install:
2323
make pipcheck
24-
$(PIP) install -r requirements-dev.txt && $(PIP) install -e .
24+
$(PIP) install -r requirements-dev.txt &&\
25+
$(PIP) install -r requirements-torch.txt && $(PIP) install -e .
2526

2627
install_conda:
2728
conda env create -f environment.yml && conda activate pylops && pip install .

azure-pipelines.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ jobs:
6161
- script: |
6262
python -m pip install --upgrade pip setuptools wheel django
6363
pip install -r requirements-dev.txt
64+
pip install -r requirements-torch.txt
6465
pip install .
6566
displayName: 'Install prerequisites and library'
6667
@@ -90,6 +91,7 @@ jobs:
9091
- script: |
9192
python -m pip install --upgrade pip setuptools wheel django
9293
pip install -r requirements-dev.txt
94+
pip install -r requirements-torch.txt
9395
pip install .
9496
displayName: 'Install prerequisites and library'
9597

docs/source/_static/cupy_diagram.png

46.2 KB
Loading
337 KB
Loading
262 KB
Loading

docs/source/api/index.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ Templates
2828
LinearOperator
2929
FunctionOperator
3030
MemoizeOperator
31+
PyTensorOperator
3132
TorchOperator
3233
JaxOperator
3334

@@ -62,6 +63,8 @@ Basic operators
6263
Real
6364
Imag
6465
Conj
66+
ToCupy
67+
6568

6669
Smoothing and derivatives
6770
~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -109,6 +112,8 @@ Signal processing
109112
Seislet
110113
Radon2D
111114
Radon3D
115+
FourierRadon2D
116+
FourierRadon3D
112117
ChirpRadon2D
113118
ChirpRadon3D
114119
Sliding1D

docs/source/api/others.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ Synthetics
118118
seismicevents.parabolic2d
119119
seismicevents.hyperbolic2d
120120
seismicevents.linear3d
121+
seismicevents.parabolic3d
121122
seismicevents.hyperbolic3d
122123

123124
.. currentmodule:: pylops.waveeqprocessing

docs/source/changelog.rst

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,19 @@
33
Changelog
44
=========
55

6+
Version 2.4.0
7+
-------------
8+
9+
*Released on: 11/12/2024*
10+
11+
* Added :py:class:`pylops.signalprocessing.FourierRadon2d` and
12+
:py:class:`pylops.signalprocessing.FourierRadon3d` operators
13+
* Added :py:class:`pylops.PyTensorOperator` operator
14+
* Added :py:class:`pylops.ToCupy` operator
15+
* Added :py:class:`pylops.utils.seismicevents.parabolic3d` method
16+
* Fix bug in :py:class:`pylops.Restriction` when passing iava as cupy array
617

18+
719
Version 2.3.1
820
-------------
921

@@ -511,7 +523,7 @@ Version 1.3.0
511523
* Added :py:func:`pylops.optimization.sparsity.ISTA` and
512524
:py:func:`pylops.optimization.sparsity.FISTA` sparse solvers
513525
* Added possibility to broadcast (handle multi-dimensional arrays)
514-
to :py:class:`pylops.Diagonal` and :py:func:`pylops..Restriction` operators
526+
to :py:class:`pylops.Diagonal` and :py:class:`pylops.Restriction` operators
515527
* Added :py:class:`pylops.signalprocessing.Interp` operator
516528
* Added :py:class:`pylops.Spread` operator
517529
* Added :py:class:`pylops.signalprocessing.Radon2D` operator

docs/source/conf.py

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
# -*- coding: utf-8 -*-
2-
import sys
3-
import os
42
import datetime
3+
import os
4+
import sys
5+
56
from sphinx_gallery.sorting import ExampleTitleSortKey
7+
68
from pylops import __version__
79

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

4246
# Generate autodoc stubs with summaries from code
@@ -103,9 +107,7 @@
103107
# These enable substitutions using |variable| in the rst files
104108
rst_epilog = """
105109
.. |year| replace:: {year}
106-
""".format(
107-
year=year
108-
)
110+
""".format(year=year)
109111
html_static_path = ["_static"]
110112
html_last_updated_fmt = "%b %d, %Y"
111113
html_title = "PyLops"
@@ -122,15 +124,16 @@
122124
# Theme config
123125
html_theme = "pydata_sphinx_theme"
124126
html_theme_options = {
125-
"logo_only": True,
126-
"display_version": True,
127+
"github_url": "https://github.com/PyLops/pylops",
128+
# "logo_only": True,
129+
# "display_version": True,
127130
"logo": {
128131
"image_light": "pylops_b.png",
129132
"image_dark": "pylops.png",
130133
}
131134
}
132135
html_css_files = [
133-
'css/custom.css',
136+
"css/custom.css",
134137
]
135138

136139
html_context = {

0 commit comments

Comments
 (0)