Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions ADMM.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
import yaml

def loadData(show_im=True):
psf = Image.open(psfname)
psf = Image.open(psfname).convert('L')
psf = np.array(psf, dtype='float32')
data = Image.open(imgname)
data = Image.open(imgname).convert('L')
data = np.array(data, dtype='float32')

"""In the picamera, there is a non-trivial background
Expand Down
4 changes: 2 additions & 2 deletions GD.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@


def loaddata(show_im=True):
psf = Image.open(psfname)
psf = Image.open(psfname).convert('L')
psf = np.array(psf, dtype='float32')
data = Image.open(imgname)
data = Image.open(imgname).convert('L')
data = np.array(data, dtype='float32')

"""In the picamera, there is a non-trivial background
Expand Down
4 changes: 2 additions & 2 deletions tutorial/ADMM.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,9 @@
"outputs": [],
"source": [
"def loadData(show_im=True):\n",
" psf = Image.open(psfname)\n",
" psf = Image.open(psfname).convert('L')\n",
" psf = np.array(psf, dtype='float32')\n",
" data = Image.open(imgname)\n",
" data = Image.open(imgname).convert('L')\n",
" data = np.array(data, dtype='float32')\n",
" \n",
" \"\"\"In the picamera, there is a non-trivial background \n",
Expand Down
4 changes: 2 additions & 2 deletions tutorial/GD.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,9 @@
"outputs": [],
"source": [
"def loaddata(show_im=True):\n",
" psf = Image.open(psfname)\n",
" psf = Image.open(psfname).convert('L')\n",
" psf = np.array(psf, dtype='float32')\n",
" data = Image.open(imgname)\n",
" data = Image.open(imgname).convert('L')\n",
" data = np.array(data, dtype='float32')\n",
" \n",
" \"\"\"In the picamera, there is a non-trivial background \n",
Expand Down