Commit 45718509 authored by Alexander Dornheim's avatar Alexander Dornheim
Browse files

Fixed directory for extraction

parent 52d41006
......@@ -6,8 +6,12 @@ from numpy.fft import fftshift, ifft2, fft2
from proxtoolbox.Utilities.mypoissonrnd import mypoissonrnd
from proxtoolbox.Utilities.gaussian import gaussian
from matplotlib.pyplot import subplots, show
#for loading data
import proxtoolbox.Utilities.GetData as GetData
import urllib
import urllib.request
import tarfile
def Goettingen_data_processor(config):
# Parameters of the forward problem
......@@ -20,7 +24,7 @@ def Goettingen_data_processor(config):
urllib.request.urlretrieve("http://vaopt.math.uni-goettingen.de/data/Phase.tar.gz","../InputData/Phase.tar.gz", reporthook=GetData.dlProgress)
print("\nExtracting data...")
tar = tarfile.open("../InputData/Phase.tar.gz", "r:gz")
tar.extractall("../InputData/")
tar.extractall("../InputData/Phase/")
tar.close()
if not(my_file.is_file()):
print('***************************************************************************************')
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment