From 8d9b37f2c2e1ca21abfb6ba7e2564b163dccd4bc Mon Sep 17 00:00:00 2001 From: Carlisle Wishard Date: Thu, 9 Feb 2023 11:13:48 -0500 Subject: [PATCH] moved the shebang to the top of the python scripts --- examples/Basic_Simulation/initial_conditions.py | 3 ++- examples/Basic_Simulation/output_reader.py | 3 ++- examples/Chambers2013/init_cond.py | 4 +++- examples/Chambers2013/scattermovie.py | 4 +++- examples/Fragmentation/swiftest_fragmentation.py | 4 +++- examples/Swifter_Swiftest/8pl_0tp/init_cond.py | 4 +++- examples/helio_gr_test/helio_gr_test.py | 3 ++- examples/solar_impact/sundiver.py | 4 +++- examples/whm_gr_test/whm_gr_test.py | 3 ++- 9 files changed, 23 insertions(+), 9 deletions(-) diff --git a/examples/Basic_Simulation/initial_conditions.py b/examples/Basic_Simulation/initial_conditions.py index 1b9dd123b..b96d23b51 100644 --- a/examples/Basic_Simulation/initial_conditions.py +++ b/examples/Basic_Simulation/initial_conditions.py @@ -1,3 +1,5 @@ +#!/usr/bin/env python3 + """ Copyright 2023 - David Minton, Carlisle Wishard, Jennifer Pouplin, Jake Elliott, & Dana Singh This file is part of Swiftest. @@ -9,7 +11,6 @@ If not, see: https://www.gnu.org/licenses. """ -#!/usr/bin/env python3 """ Generates and runs a set of Swiftest input files from initial conditions with the SyMBA integrator. All simulation outputs are stored in the /simdata subdirectory. diff --git a/examples/Basic_Simulation/output_reader.py b/examples/Basic_Simulation/output_reader.py index 278ed3abd..851384bf3 100644 --- a/examples/Basic_Simulation/output_reader.py +++ b/examples/Basic_Simulation/output_reader.py @@ -1,3 +1,5 @@ +#!/usr/bin/env python3 + """ Copyright 2023 - David Minton, Carlisle Wishard, Jennifer Pouplin, Jake Elliott, & Dana Singh This file is part of Swiftest. @@ -9,7 +11,6 @@ If not, see: https://www.gnu.org/licenses. """ -#!/usr/bin/env python3 """ Reads and processes a Swiftest output file. diff --git a/examples/Chambers2013/init_cond.py b/examples/Chambers2013/init_cond.py index 91a301886..39d81fea1 100755 --- a/examples/Chambers2013/init_cond.py +++ b/examples/Chambers2013/init_cond.py @@ -1,3 +1,5 @@ +#!/usr/bin/env python3 + """ Copyright 2023 - David Minton, Carlisle Wishard, Jennifer Pouplin, Jake Elliott, & Dana Singh This file is part of Swiftest. @@ -9,7 +11,7 @@ If not, see: https://www.gnu.org/licenses. """ -#!/usr/bin/env python3 +""" import swiftest import numpy as np from numpy.random import default_rng diff --git a/examples/Chambers2013/scattermovie.py b/examples/Chambers2013/scattermovie.py index c9bcfded1..3f74663e5 100755 --- a/examples/Chambers2013/scattermovie.py +++ b/examples/Chambers2013/scattermovie.py @@ -1,3 +1,5 @@ +#!/usr/bin/env python3 + """ Copyright 2023 - David Minton, Carlisle Wishard, Jennifer Pouplin, Jake Elliott, & Dana Singh This file is part of Swiftest. @@ -9,7 +11,7 @@ If not, see: https://www.gnu.org/licenses. """ -#!/usr/bin/env python3 +""" import swiftest import numpy as np import matplotlib.pyplot as plt diff --git a/examples/Fragmentation/swiftest_fragmentation.py b/examples/Fragmentation/swiftest_fragmentation.py index f48ccfc86..758864a81 100644 --- a/examples/Fragmentation/swiftest_fragmentation.py +++ b/examples/Fragmentation/swiftest_fragmentation.py @@ -1,3 +1,5 @@ +#!/usr/bin/env python3 + """ Copyright 2023 - David Minton, Carlisle Wishard, Jennifer Pouplin, Jake Elliott, & Dana Singh This file is part of Swiftest. @@ -8,7 +10,7 @@ You should have received a copy of the GNU General Public License along with Swiftest. If not, see: https://www.gnu.org/licenses. """ -#!/usr/bin/env python3 + """ Generates and runs a set of Swiftest input files from initial conditions with the SyMBA integrator. All simulation outputs for the disruption case are stored in the /disruption subdirectory. All simulation outputs for the hit and run diff --git a/examples/Swifter_Swiftest/8pl_0tp/init_cond.py b/examples/Swifter_Swiftest/8pl_0tp/init_cond.py index b66768453..cab87ccb5 100755 --- a/examples/Swifter_Swiftest/8pl_0tp/init_cond.py +++ b/examples/Swifter_Swiftest/8pl_0tp/init_cond.py @@ -1,3 +1,5 @@ +#!/usr/bin/env python3 + """ Copyright 2023 - David Minton, Carlisle Wishard, Jennifer Pouplin, Jake Elliott, & Dana Singh This file is part of Swiftest. @@ -9,7 +11,7 @@ If not, see: https://www.gnu.org/licenses. """ -#!/usr/bin/env python3 +""" import numpy as np import swiftest import swiftest.io as swio diff --git a/examples/helio_gr_test/helio_gr_test.py b/examples/helio_gr_test/helio_gr_test.py index a416fbdd1..0a0272261 100644 --- a/examples/helio_gr_test/helio_gr_test.py +++ b/examples/helio_gr_test/helio_gr_test.py @@ -1,3 +1,5 @@ +#!/usr/bin/env python3 + """ Copyright 2023 - David Minton, Carlisle Wishard, Jennifer Pouplin, Jake Elliott, & Dana Singh This file is part of Swiftest. @@ -9,7 +11,6 @@ If not, see: https://www.gnu.org/licenses. """ -#!/usr/bin/env python3 """ Generates and runs two sets of Swiftest input files from initial conditions with the helio integrator. All simulation outputs for the general relativity run are stored in the /gr subdirectory while all simulation outputs for the run diff --git a/examples/solar_impact/sundiver.py b/examples/solar_impact/sundiver.py index e3b24e077..820cef821 100644 --- a/examples/solar_impact/sundiver.py +++ b/examples/solar_impact/sundiver.py @@ -1,3 +1,5 @@ +#!/usr/bin/env python3 + """ Copyright 2023 - David Minton, Carlisle Wishard, Jennifer Pouplin, Jake Elliott, & Dana Singh This file is part of Swiftest. @@ -9,7 +11,7 @@ If not, see: https://www.gnu.org/licenses. """ -#!/usr/bin/env python3 +""" import swiftest import numpy as np diff --git a/examples/whm_gr_test/whm_gr_test.py b/examples/whm_gr_test/whm_gr_test.py index e3feb9aaf..895dbd4b4 100644 --- a/examples/whm_gr_test/whm_gr_test.py +++ b/examples/whm_gr_test/whm_gr_test.py @@ -1,3 +1,5 @@ +#!/usr/bin/env python3 + """ Copyright 2023 - David Minton, Carlisle Wishard, Jennifer Pouplin, Jake Elliott, & Dana Singh This file is part of Swiftest. @@ -9,7 +11,6 @@ If not, see: https://www.gnu.org/licenses. """ -#!/usr/bin/env python3 """ Generates and runs two sets of Swiftest input files from initial conditions with the WHM integrator. All simulation outputs for the general relativity run are stored in the /gr subdirectory while all simulation outputs for the run