From 2abce665bc017f6f125e6e5929f4aca86aed1c76 Mon Sep 17 00:00:00 2001 From: Sebastian Schmitt <sebastian.schmitt@kip.uni-heidelberg.de> Date: Tue, 10 Nov 2020 10:37:43 +0100 Subject: [PATCH] Make python examples executable and add shebang (#1181) --- python/example/network_ring.py | 2 ++ python/example/single_cell_model.py | 2 ++ python/example/single_cell_multi_branch.py | 2 ++ python/example/single_cell_swc.py | 2 ++ 4 files changed, 8 insertions(+) mode change 100644 => 100755 python/example/network_ring.py mode change 100644 => 100755 python/example/single_cell_model.py mode change 100644 => 100755 python/example/single_cell_multi_branch.py mode change 100644 => 100755 python/example/single_cell_swc.py diff --git a/python/example/network_ring.py b/python/example/network_ring.py old mode 100644 new mode 100755 index 49fe5a69..5dad8be7 --- a/python/example/network_ring.py +++ b/python/example/network_ring.py @@ -1,3 +1,5 @@ +#!/usr/bin/env python3 + import arbor import pandas, seaborn from math import sqrt diff --git a/python/example/single_cell_model.py b/python/example/single_cell_model.py old mode 100644 new mode 100755 index d3f6bf9c..9d88ced0 --- a/python/example/single_cell_model.py +++ b/python/example/single_cell_model.py @@ -1,3 +1,5 @@ +#!/usr/bin/env python3 + import arbor import pandas, seaborn # You may have to pip install these. diff --git a/python/example/single_cell_multi_branch.py b/python/example/single_cell_multi_branch.py old mode 100644 new mode 100755 index ce14a6bb..c9c4cb60 --- a/python/example/single_cell_multi_branch.py +++ b/python/example/single_cell_multi_branch.py @@ -1,3 +1,5 @@ +#!/usr/bin/env python3 + import arbor import seaborn import pandas diff --git a/python/example/single_cell_swc.py b/python/example/single_cell_swc.py old mode 100644 new mode 100755 index fe72c3fa..bdfb718a --- a/python/example/single_cell_swc.py +++ b/python/example/single_cell_swc.py @@ -1,3 +1,5 @@ +#!/usr/bin/env python3 + # NOTE: deprecating spherical roots changes the behavior of this model. # There is no soma, because only the root sample has tag 1, which will be # ignored as it is always the proximal end of any cable segment. -- GitLab