Skip to content

Commit

Permalink
Remove unused modules
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexKurek committed Jul 17, 2024
1 parent d055f4b commit d43f9a7
Show file tree
Hide file tree
Showing 34 changed files with 4 additions and 45 deletions.
2 changes: 0 additions & 2 deletions python_examples/longtermtest/problem.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
import sys
import matplotlib; matplotlib.use("pdf")
import matplotlib.pyplot as plt
from matplotlib import ticker
from matplotlib.colors import LogNorm
import rebound
import numpy as np
import time
Expand Down
1 change: 0 additions & 1 deletion python_examples/megno/problem.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
import rebound
# Import other modules
import numpy as np
import multiprocessing
import warnings

# Runs one simulation.
Expand Down
1 change: 0 additions & 1 deletion python_examples/outersolarsystem/problem.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# Import the rebound module
import rebound
import os

# Create a REBOUND simulation
sim = rebound.Simulation()
Expand Down
1 change: 0 additions & 1 deletion python_examples/simulationarchive/problem.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# Import the rebound module
import rebound
import os

filename = "simulationarchive.bin"
try:
Expand Down
2 changes: 1 addition & 1 deletion rebound/particle.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from ctypes import Structure, c_double, c_int, byref, memmove, sizeof, c_uint32, c_uint, c_uint64, c_char_p, string_at, POINTER, c_char, c_int64, c_void_p
from ctypes import Structure, c_double, c_int, byref, memmove, sizeof, c_uint32, c_uint, c_uint64, string_at, POINTER, c_char, c_void_p
import math
import sys
import random
Expand Down
1 change: 0 additions & 1 deletion rebound/plotting.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-
import math
from .particle import Particle
from itertools import cycle

Expand Down
2 changes: 1 addition & 1 deletion rebound/simulation.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from ctypes import Structure, c_double, POINTER, c_uint32, c_float, c_int, c_uint, c_int64, c_uint64, c_void_p, c_char_p, CFUNCTYPE, byref, create_string_buffer, addressof, pointer, c_char, c_size_t, string_at
from ctypes import Structure, c_double, POINTER, c_uint32, c_int, c_uint, c_int64, c_uint64, c_void_p, c_char_p, CFUNCTYPE, byref, create_string_buffer, addressof, c_char, c_size_t, string_at
from . import clibrebound, Escape, NoParticles, Encounter, Collision, GenericError
from .citations import cite
from .units import units_convert_particle, check_units, convert_G, hash_to_unit
Expand Down
1 change: 0 additions & 1 deletion rebound/tests/test_additional_forces.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import rebound
import unittest
import rebound.data as data

class TestAdditionalForces(unittest.TestCase):
def test_af_ias15(self):
Expand Down
1 change: 0 additions & 1 deletion rebound/tests/test_bs.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import unittest
import math
import rebound.data
import warnings


def derivatives_ho(ode, yDot, y, t):
Expand Down
3 changes: 0 additions & 3 deletions rebound/tests/test_copy.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
import rebound
import unittest
import datetime
import socket
import warnings

class TestCopy(unittest.TestCase):
def test_copy_is_same(self):
Expand Down
1 change: 0 additions & 1 deletion rebound/tests/test_data.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import rebound
import unittest
import os
import rebound.data as data

class TestData(unittest.TestCase):
Expand Down
1 change: 0 additions & 1 deletion rebound/tests/test_gravity.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import rebound
import unittest
import math
import warnings

class TestGravity(unittest.TestCase):
Expand Down
1 change: 0 additions & 1 deletion rebound/tests/test_hash.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import rebound
import unittest
import math
from ctypes import c_uint32

class TestHash(unittest.TestCase):
Expand Down
1 change: 0 additions & 1 deletion rebound/tests/test_horizons.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import rebound
import unittest
import datetime
import socket
import warnings

Expand Down
1 change: 0 additions & 1 deletion rebound/tests/test_janus.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import unittest
import math
import rebound.data
import warnings

class TestIntegratorJanus(unittest.TestCase):
def test_janus_energy(self):
Expand Down
2 changes: 0 additions & 2 deletions rebound/tests/test_mercurius.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import rebound
import unittest
import os
import sys
import warnings
import rebound.data as data
from datetime import datetime

class TestMercurius(unittest.TestCase):
Expand Down
1 change: 0 additions & 1 deletion rebound/tests/test_modify_orbital_parameters.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import rebound
import unittest
import ctypes

d = 1e-14 # precision. some orbit transformations are not well behaved

Expand Down
1 change: 0 additions & 1 deletion rebound/tests/test_orbital_elements.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import rebound
import math
import unittest
import ctypes

class TestOrbitalElements(unittest.TestCase):
def test_add_errors(self):
Expand Down
1 change: 0 additions & 1 deletion rebound/tests/test_pickle.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import rebound
import unittest
import pickle
import os
import warnings

class TestPickle(unittest.TestCase):
Expand Down
1 change: 0 additions & 1 deletion rebound/tests/test_post_timestep_modifications.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import rebound
import unittest
import rebound.data as data

mdot = 1e-6
def ptm(sim):
Expand Down
1 change: 0 additions & 1 deletion rebound/tests/test_restart_mercurius.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import rebound
import unittest
import warnings

class TestSimulationRestartMercurius(unittest.TestCase):
def test_sa_mercurius_restart(self):
Expand Down
1 change: 0 additions & 1 deletion rebound/tests/test_rotations.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import rebound
import unittest
import math
import warnings

class TestRotations(unittest.TestCase):
def test_init(self):
Expand Down
2 changes: 0 additions & 2 deletions rebound/tests/test_serialize.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import rebound
import unittest
import os
import math

class TestSerialize(unittest.TestCase):
def setUp(self):
Expand Down
2 changes: 0 additions & 2 deletions rebound/tests/test_simulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@
import warnings
import unittest
import os
import math
import sys
from ctypes import c_uint32

class TestSimulation(unittest.TestCase):
def setUp(self):
Expand Down
2 changes: 0 additions & 2 deletions rebound/tests/test_trace.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,8 @@
import unittest
import numpy as np
import math
import os
import sys
import warnings
import rebound.data as data
from datetime import datetime

def chaotic_exchange_sim():
Expand Down
1 change: 0 additions & 1 deletion rebound/tests/test_trace_basic.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import rebound
import unittest
import numpy as np


class TestIntegratorTraceBasic(unittest.TestCase):
Expand Down
2 changes: 0 additions & 2 deletions rebound/tests/test_trace_full_bs.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,8 @@
import unittest
import numpy as np
import math
import os
import sys
import warnings
import rebound.data as data
from datetime import datetime

def chaotic_exchange_sim():
Expand Down
2 changes: 0 additions & 2 deletions rebound/tests/test_trace_full_ias15.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,8 @@
import unittest
import numpy as np
import math
import os
import sys
import warnings
import rebound.data as data
from datetime import datetime

def chaotic_exchange_sim():
Expand Down
1 change: 0 additions & 1 deletion rebound/tests/test_units.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import rebound
import unittest
import os

class TestUnits(unittest.TestCase):
def setUp(self):
Expand Down
1 change: 0 additions & 1 deletion rebound/tests/test_variational.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import rebound
import unittest
import datetime
import math
import sys

Expand Down
1 change: 0 additions & 1 deletion rebound/tests/test_whfast_testparticles.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import rebound
import unittest
import math
import rebound.data
import warnings

Expand Down
3 changes: 1 addition & 2 deletions rebound/tools.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
from ctypes import c_uint32, c_uint, c_uint64, c_char_p, c_double, byref
import sys
from ctypes import c_double, byref
import rebound

def mod2pi(x):
Expand Down
3 changes: 1 addition & 2 deletions rebound/widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -423,10 +423,9 @@

from ipywidgets import DOMWidget
import traitlets
import math
import base64
import sys
from ctypes import c_float, byref, create_string_buffer, c_int, c_char, pointer
from ctypes import byref, c_int, c_char, pointer
from . import clibrebound
from .simulation import VISUALIZATIONS

Expand Down
1 change: 0 additions & 1 deletion update_version.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#!python
# This script automatically creates a list of examples by reading the header in all problem.c files.
import glob
import subprocess
ghash = subprocess.check_output(["git", "rev-parse", "HEAD"]).decode("ascii").strip()

Expand Down

0 comments on commit d43f9a7

Please sign in to comment.