Commit 128499cc authored by Schellhorn's avatar Schellhorn
Browse files

more automatic download

parent 8f9cc260
...@@ -66,9 +66,6 @@ class Phasepack_Experiment(PhaseExperiment): ...@@ -66,9 +66,6 @@ class Phasepack_Experiment(PhaseExperiment):
""" """
Load Phasepack dataset. Create the initial iterate. Load Phasepack dataset. Create the initial iterate.
""" """
#make sure input data can be found, otherwise download it
GetData.getData('Phase')
# check if data exists # check if data exists
# TODO: All the data corresponding to this experiment should be placed # TODO: All the data corresponding to this experiment should be placed
# in a zip file on the http://vaopt.math.uni-goettingen.de/data/ website # in a zip file on the http://vaopt.math.uni-goettingen.de/data/ website
......
...@@ -32,6 +32,9 @@ def getData(problemFamily): ...@@ -32,6 +32,9 @@ def getData(problemFamily):
my_file = datadir/'CT'/'ART_SheppLogan.mat' my_file = datadir/'CT'/'ART_SheppLogan.mat'
elif problemFamily == 'Ptychography': elif problemFamily == 'Ptychography':
my_file = datadir/'Ptychography'/'gaenseliesel.png' my_file = datadir/'Ptychography'/'gaenseliesel.png'
elif problemFamily == 'OrbitalTomog':
errMsg = 'OrbitalTomog downloader is yet a work in progress'
raise IOError(errMsg)
else: else:
print("Invalid input in GetData.GetData. problemFamily has to be Phase, CT or Ptychography") print("Invalid input in GetData.GetData. problemFamily has to be Phase, CT or Ptychography")
return -1 return -1
......
Markdown is supported
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