Skip to content

Commit 939c4e7

Browse files
authored
Merge pull request #113 from mrava87/dev
doc: update more tutorials to work with pylopsv2
2 parents f375bee + e111ad7 commit 939c4e7

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

tutorials/basispursuit.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@
3838
# operator
3939
A = np.random.normal(0, 1, (n, m))
4040
Aop = pylops.MatrixMult(A)
41+
Aop.explicit = False # temporary solution whilst PyLops gets updated
42+
4143
y = Aop * x
4244

4345
###############################################################################

tutorials/plugandplay.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,15 @@
1919
import numpy as np
2020
import matplotlib.pyplot as plt
2121
import pylops
22-
from scipy import misc
2322

2423
import pyproximal
2524
import bm3d
2625

26+
from pylops.config import set_ndarray_multiplication
27+
2728
plt.close('all')
2829
np.random.seed(0)
30+
set_ndarray_multiplication(False)
2931

3032
###############################################################################
3133
# Let's start by loading the famous Shepp logan phantom and creating the

0 commit comments

Comments
 (0)