Skip to content

Commit

Permalink
Generate screenshots using the test method
Browse files Browse the repository at this point in the history
  • Loading branch information
IgorTatarnikov committed Jun 6, 2024
1 parent 9185a60 commit 5f59be7
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions examples/neurons.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
from pathlib import Path
from importlib.resources import files

import requests.exceptions
from morphapi.api.mouselight import MouseLightAPI
Expand Down Expand Up @@ -29,7 +28,7 @@
to_add = [neurons_metadata[47], neurons_metadata[51]]
neurons = mlapi.download_neurons(to_add)
neurons = scene.add(*make_neurons(*neurons, neurite_radius=12))
except ConnectionError as e:
except ConnectionError or requests.exceptions.ReadTimeout as e:
print("Failed to download neurons data from neuromorpho.org.")

# Render!
Expand Down
Binary file modified tests/data/screenshot.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/data/screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 5f59be7

Please sign in to comment.