diff --git a/.idea/UNI_Python.iml b/.idea/UNI_Python.iml index 5854a2f..adf23df 100644 --- a/.idea/UNI_Python.iml +++ b/.idea/UNI_Python.iml @@ -4,7 +4,7 @@ - + \ No newline at end of file diff --git a/.idea/jupyter-settings.xml b/.idea/jupyter-settings.xml new file mode 100644 index 0000000..fa111dc --- /dev/null +++ b/.idea/jupyter-settings.xml @@ -0,0 +1,25 @@ + + + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml index c20271c..59b5b2e 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -1,4 +1,4 @@ - + \ No newline at end of file diff --git a/ha_08/loosen_janniclas_1540907_09.py b/ha_08/loosen_janniclas_1540907_09.py index 29fd0b4..05adc0d 100644 --- a/ha_08/loosen_janniclas_1540907_09.py +++ b/ha_08/loosen_janniclas_1540907_09.py @@ -85,6 +85,7 @@ sharp = np.array([ url = "https://media.newyorker.com/photos/5e3b18f932d7150008e6cf16/master/w_2240,c_limit/Neima-Picard.jpg" response = requests.get(url) + if response.status_code == 200: image = Image.open(BytesIO(response.content)) operators = [g1, g2, g3, g4] @@ -182,12 +183,10 @@ class Heatmap_Image: self.image.save(file) -""" sim = Heatmap_Simulator() img = sim.export() img.save("img_0.jpg") for i in range(1,20): sim.simulate(100) img = sim.export() - img.save(f"img_{i}.jpg") -""" \ No newline at end of file + img.save(f"img_{i}.jpg") \ No newline at end of file