From a4b3198eeb3615fc3a02233502fcc74b66f861df Mon Sep 17 00:00:00 2001
From: Gregory Ashton <gregory.ashton@ligo.org>
Date: Wed, 3 Oct 2018 21:39:30 +1000
Subject: [PATCH] Make all examples have a sensible shebang

---
 examples/injection_examples/basic_tutorial.py                   | 2 +-
 examples/injection_examples/binary_neutron_star_example.py      | 2 +-
 examples/injection_examples/calibration_example.py              | 2 +-
 examples/injection_examples/create_your_own_source_model.py     | 2 +-
 .../create_your_own_time_domain_source_model.py                 | 1 +
 examples/injection_examples/eccentric_inspiral.py               | 2 +-
 examples/injection_examples/how_to_specify_the_prior.py         | 2 +-
 examples/injection_examples/marginalized_likelihood.py          | 2 +-
 examples/injection_examples/plot_time_domain_data.py            | 2 +-
 examples/injection_examples/sine_gaussian_example.py            | 2 +-
 examples/injection_examples/using_gwin.py                       | 2 +-
 examples/open_data_examples/GW150914.py                         | 2 +-
 examples/open_data_examples/GW150914_minimal.py                 | 2 +-
 examples/other_examples/add_multiple_results.py                 | 2 +-
 examples/other_examples/gaussian_example.py                     | 2 +-
 examples/other_examples/get_LOSC_event_data.py                  | 1 +
 examples/other_examples/linear_regression_pymc3.py              | 2 +-
 .../other_examples/linear_regression_pymc3_custom_likelihood.py | 2 +-
 examples/other_examples/occam_factor_example.py                 | 2 +-
 19 files changed, 19 insertions(+), 17 deletions(-)

diff --git a/examples/injection_examples/basic_tutorial.py b/examples/injection_examples/basic_tutorial.py
index 90202b5f4..1e90bcddc 100644
--- a/examples/injection_examples/basic_tutorial.py
+++ b/examples/injection_examples/basic_tutorial.py
@@ -1,4 +1,4 @@
-#!/bin/python
+#!/usr/bin/env python
 """
 Tutorial to demonstrate running parameter estimation on a reduced parameter space for an injected signal.
 
diff --git a/examples/injection_examples/binary_neutron_star_example.py b/examples/injection_examples/binary_neutron_star_example.py
index cec8fc5e0..4f826a060 100644
--- a/examples/injection_examples/binary_neutron_star_example.py
+++ b/examples/injection_examples/binary_neutron_star_example.py
@@ -1,4 +1,4 @@
-#!/bin/python
+#!/usr/bin/env python
 """
 Tutorial to demonstrate running parameter estimation on a binary neutron star
 system taking into account tidal deformabilities.
diff --git a/examples/injection_examples/calibration_example.py b/examples/injection_examples/calibration_example.py
index d111d3896..9f2052ffb 100644
--- a/examples/injection_examples/calibration_example.py
+++ b/examples/injection_examples/calibration_example.py
@@ -1,4 +1,4 @@
-#!/bin/python
+#!/usr/bin/env python
 """
 Tutorial to demonstrate running parameter estimation with calibration
 uncertainties included.
diff --git a/examples/injection_examples/create_your_own_source_model.py b/examples/injection_examples/create_your_own_source_model.py
index f304b97ab..254fdfc52 100644
--- a/examples/injection_examples/create_your_own_source_model.py
+++ b/examples/injection_examples/create_your_own_source_model.py
@@ -1,4 +1,4 @@
-#!/bin/python
+#!/usr/bin/env python
 """
 A script to demonstrate how to use your own source model
 """
diff --git a/examples/injection_examples/create_your_own_time_domain_source_model.py b/examples/injection_examples/create_your_own_time_domain_source_model.py
index ac45e1ef9..5ea57fb58 100644
--- a/examples/injection_examples/create_your_own_time_domain_source_model.py
+++ b/examples/injection_examples/create_your_own_time_domain_source_model.py
@@ -1,3 +1,4 @@
+#!/usr/bin/env python
 """
 A script to show how to create your own time domain source model.
 A simple damped Gaussian signal is defined in the time domain, injected into noise in
diff --git a/examples/injection_examples/eccentric_inspiral.py b/examples/injection_examples/eccentric_inspiral.py
index 235536ca4..75ff93b57 100644
--- a/examples/injection_examples/eccentric_inspiral.py
+++ b/examples/injection_examples/eccentric_inspiral.py
@@ -1,4 +1,4 @@
-#!/bin/python
+#!/usr/bin/env python
 """
 Tutorial to demonstrate running parameter estimation on a reduced parameter space
 for an injected eccentric binary black hole signal with masses & distnace similar
diff --git a/examples/injection_examples/how_to_specify_the_prior.py b/examples/injection_examples/how_to_specify_the_prior.py
index 706bdaedc..b92288d90 100644
--- a/examples/injection_examples/how_to_specify_the_prior.py
+++ b/examples/injection_examples/how_to_specify_the_prior.py
@@ -1,4 +1,4 @@
-#!/bin/python
+#!/usr/bin/env python
 """
 Tutorial to demonstrate how to specify the prior distributions used for parameter estimation.
 """
diff --git a/examples/injection_examples/marginalized_likelihood.py b/examples/injection_examples/marginalized_likelihood.py
index 300649719..83259d627 100644
--- a/examples/injection_examples/marginalized_likelihood.py
+++ b/examples/injection_examples/marginalized_likelihood.py
@@ -1,4 +1,4 @@
-#!/bin/python
+#!/usr/bin/env python
 """
 Tutorial to demonstrate how to improve the speed and efficiency of parameter estimation on an injected signal using
 phase and distance marginalisation.
diff --git a/examples/injection_examples/plot_time_domain_data.py b/examples/injection_examples/plot_time_domain_data.py
index d03c3200a..f3d056b7a 100644
--- a/examples/injection_examples/plot_time_domain_data.py
+++ b/examples/injection_examples/plot_time_domain_data.py
@@ -1,4 +1,4 @@
-#!/bin/python
+#!/usr/bin/env python
 """
 """
 from __future__ import division, print_function
diff --git a/examples/injection_examples/sine_gaussian_example.py b/examples/injection_examples/sine_gaussian_example.py
index c63691af1..4bbf7c6b0 100644
--- a/examples/injection_examples/sine_gaussian_example.py
+++ b/examples/injection_examples/sine_gaussian_example.py
@@ -1,4 +1,4 @@
-#!/bin/python
+#!/usr/bin/env python
 """
 Tutorial to demonstrate running parameter estimation on a sine gaussian injected signal.
 
diff --git a/examples/injection_examples/using_gwin.py b/examples/injection_examples/using_gwin.py
index f6f0e28d6..a213c490c 100644
--- a/examples/injection_examples/using_gwin.py
+++ b/examples/injection_examples/using_gwin.py
@@ -1,4 +1,4 @@
-#!/bin/python
+#!/usr/bin/env python
 """
 An example of how to use bilby with `gwin` (https://github.com/gwastro/gwin) to
 perform CBC parameter estimation.
diff --git a/examples/open_data_examples/GW150914.py b/examples/open_data_examples/GW150914.py
index b0876d243..aa5ca44af 100644
--- a/examples/open_data_examples/GW150914.py
+++ b/examples/open_data_examples/GW150914.py
@@ -1,4 +1,4 @@
-#!/bin/python
+#!/usr/bin/env python
 """
 Tutorial to demonstrate running parameter estimation on GW150914 using open
 data.
diff --git a/examples/open_data_examples/GW150914_minimal.py b/examples/open_data_examples/GW150914_minimal.py
index 339eb3b13..520fe6ae9 100644
--- a/examples/open_data_examples/GW150914_minimal.py
+++ b/examples/open_data_examples/GW150914_minimal.py
@@ -1,4 +1,4 @@
-#!/bin/python
+#!/usr/bin/env python
 """
 Tutorial to demonstrate the minimum number of steps required to run parameter
 stimation on GW150914 using open data.
diff --git a/examples/other_examples/add_multiple_results.py b/examples/other_examples/add_multiple_results.py
index b4f99ba96..f4c565555 100644
--- a/examples/other_examples/add_multiple_results.py
+++ b/examples/other_examples/add_multiple_results.py
@@ -1,4 +1,4 @@
-#!/bin/python
+#!/usr/bin/env python
 """
 An example of running two sets of posterior sample estimations and adding them
 """
diff --git a/examples/other_examples/gaussian_example.py b/examples/other_examples/gaussian_example.py
index 318222e2d..bf7730286 100644
--- a/examples/other_examples/gaussian_example.py
+++ b/examples/other_examples/gaussian_example.py
@@ -1,4 +1,4 @@
-#!/bin/python
+#!/usr/bin/env python
 """
 An example of how to use bilby to perform paramater estimation for
 non-gravitational wave data consisting of a Gaussian with a mean and variance
diff --git a/examples/other_examples/get_LOSC_event_data.py b/examples/other_examples/get_LOSC_event_data.py
index 7a8836ba1..6197426eb 100644
--- a/examples/other_examples/get_LOSC_event_data.py
+++ b/examples/other_examples/get_LOSC_event_data.py
@@ -1,3 +1,4 @@
+#!/usr/bin/env python
 """ Helper script to faciliate downloading data from LOSC
 
 Usage: To download the GW150914 data from https://losc.ligo.org/events/ 
diff --git a/examples/other_examples/linear_regression_pymc3.py b/examples/other_examples/linear_regression_pymc3.py
index 3328d8cf5..c10d5d3c9 100644
--- a/examples/other_examples/linear_regression_pymc3.py
+++ b/examples/other_examples/linear_regression_pymc3.py
@@ -1,4 +1,4 @@
-#!/bin/python
+#!/usr/bin/env python
 """
 An example of how to use bilby to perform paramater estimation for
 non-gravitational wave data. In this case, fitting a linear function to
diff --git a/examples/other_examples/linear_regression_pymc3_custom_likelihood.py b/examples/other_examples/linear_regression_pymc3_custom_likelihood.py
index 2f3696794..9321ea4c8 100644
--- a/examples/other_examples/linear_regression_pymc3_custom_likelihood.py
+++ b/examples/other_examples/linear_regression_pymc3_custom_likelihood.py
@@ -1,4 +1,4 @@
-#!/bin/python
+#!/usr/bin/env python
 """
 An example of how to use bilby to perform paramater estimation for
 non-gravitational wave data. In this case, fitting a linear function to
diff --git a/examples/other_examples/occam_factor_example.py b/examples/other_examples/occam_factor_example.py
index b164a3298..b977eaead 100644
--- a/examples/other_examples/occam_factor_example.py
+++ b/examples/other_examples/occam_factor_example.py
@@ -1,4 +1,4 @@
-#!/bin/python
+#!/usr/bin/env python
 """
 
 As part of the :code:`bilby.result.Result` object, we provide a method to
-- 
GitLab