Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unused modules #56

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion examples/Cooling/CoolingHalo/density_profile.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import numpy as np
import h5py as h5
import matplotlib.pyplot as plt
import sys

n_snaps = 11

Expand Down
1 change: 0 additions & 1 deletion examples/Cooling/CoolingHalo/makeIC.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
import sys
import numpy as np
import math
import random

# Generates N particles in a spherically symmetric distribution with density profile ~r^(-2)
# usage: python3 makeIC.py 1000: generate 1000 particles
Expand Down
2 changes: 0 additions & 2 deletions examples/Cooling/CoolingHalo/makeIC_random_box.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@
import h5py
import sys
import numpy as np
import math
import random

# Generates N particles in a spherically symmetric distribution with density profile ~r^(-2)
# usage: python3 makeIC.py 1000: generate 1000 particles
Expand Down
1 change: 0 additions & 1 deletion examples/Cooling/CoolingHalo/test_energy_conservation.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import numpy as np
import h5py as h5
import matplotlib.pyplot as plt
import sys

n_snaps = 41

Expand Down
1 change: 0 additions & 1 deletion examples/Cooling/CoolingHaloWithSpin/makeIC.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
import sys
import numpy as np
import math
import random

# Generates N particles in a spherically symmetric distribution with density profile ~r^(-2)
# usage: python3 makeIC.py 1000: generate 1000 particles
Expand Down
2 changes: 0 additions & 2 deletions examples/Cooling/CoolingHaloWithSpin/makeIC_random_box.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@
import h5py
import sys
import numpy as np
import math
import random

# Generates N particles in a spherically symmetric distribution with density profile ~r^(-2)
# usage: python3 makeIC.py 1000: generate 1000 particles
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import numpy as np
import h5py as h5
import matplotlib.pyplot as plt
import sys
import glob

# Get the total number of snapshots
Expand Down
1 change: 0 additions & 1 deletion examples/Cooling/CoolingRates/plot_cooling_rates.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
# by testCooling.

import matplotlib.pyplot as plt
import numpy as np

# Number of metals tracked by EAGLE cooling
elements = 11
Expand Down
2 changes: 1 addition & 1 deletion examples/Cooling/FeedbackEvent_3D/makeIC.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
from swiftsimio import Writer
from swiftsimio.units import cosmo_units

from unyt import cm, kpc, mh, msun, K, s, kb
from unyt import cm, mh, msun, K, s, kb

import h5py
import numpy as np
Expand Down
1 change: 0 additions & 1 deletion examples/Cooling/FeedbackEvent_3D/plotEnergy.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@

from makeIC import (
gamma,
initial_density,
initial_temperature,
inject_temperature,
mu,
Expand Down
3 changes: 1 addition & 2 deletions examples/Cooling/FeedbackEvent_3D/plotEnergyAll.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,11 @@

from swiftsimio import load

from unyt import Gyr, erg, mh, kb, Myr
from unyt import erg, mh, kb, Myr
from scipy.interpolate import interp1d

from makeIC import (
gamma,
initial_density,
initial_temperature,
inject_temperature,
mu,
Expand Down
2 changes: 0 additions & 2 deletions examples/GEAR/AgoraCosmo/convert_ic.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,9 @@
from h5py import File
import shutil
import numpy as np
import sys
from swiftsimio.visualisation.smoothing_length_generation import (
generate_smoothing_lengths,
)
import time
from unyt import kpc

filename = "agora_arepo.hdf5"
Expand Down
2 changes: 0 additions & 2 deletions examples/GravityTests/DiscPatch/HydroStatic/makeIC.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,8 @@
##############################################################################

import h5py
import sys
import numpy as np
import math
import random

# Generates a disc-patch in hydrostatic equilibrium
#
Expand Down
2 changes: 0 additions & 2 deletions examples/GravityTests/DiscPatch/HydroStatic_1D/makeIC.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,8 @@
##############################################################################

import h5py
import sys
import numpy as np
import math
import random

# Generates a disc-patch in hydrostatic equilibrium
#
Expand Down
1 change: 0 additions & 1 deletion examples/GravityTests/ExternalPointMass/energy_plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

matplotlib.use("Agg")
from pylab import *
import h5py

# Plot parameters
params = {
Expand Down
1 change: 0 additions & 1 deletion examples/GravityTests/ExternalPointMass/makeIC.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
import sys
import numpy
import math
import random

# Generates a random distriution of particles, for motion in an external potential centred at (0,0,0)

Expand Down
2 changes: 0 additions & 2 deletions examples/GravityTests/Hernquist_circularorbit/makeIC.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
#
################################################################################
import numpy as np
import matplotlib.pyplot as plt
from astropy import units
import h5py as h5

C = 8.0
Expand Down
1 change: 0 additions & 1 deletion examples/GravityTests/Hernquist_circularorbit/plotprog.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
import numpy as np
import h5py
import matplotlib.pyplot as plt
from scipy.integrate import odeint

t = np.linspace(0, 40, 100000)
y0 = [0, 10]
Expand Down
2 changes: 0 additions & 2 deletions examples/GravityTests/Hernquist_radialinfall/makeIC.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,8 @@
##############################################################################

import h5py
import sys
import numpy
import math
import random
import numpy as np

# Generates N particles in a spherical distribution centred on [0,0,0], to be moved in an isothermal potential
Expand Down
1 change: 0 additions & 1 deletion examples/GravityTests/Hernquist_radialinfall/plotprog.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
import numpy as np
import h5py
import matplotlib.pyplot as plt
from scipy.integrate import odeint


lengthrun = 2001
Expand Down
1 change: 0 additions & 1 deletion examples/GravityTests/HydrostaticHalo/makeIC.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
import sys
import numpy as np
import math
import random

# Generates N particles in a spherically symmetric distribution with density profile ~r^(-2)
# usage: python3 makeIC.py 1000: generate 1000 particles
Expand Down
1 change: 0 additions & 1 deletion examples/GravityTests/IsothermalPotential/energy_plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

matplotlib.use("Agg")
from pylab import *
import h5py

# Plot parameters
params = {
Expand Down
1 change: 0 additions & 1 deletion examples/GravityTests/IsothermalPotential/makeIC.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
import sys
import numpy
import math
import random

# Generates N particles in a spherical distribution centred on [0,0,0], to be moved in an isothermal potential
# usage: python3 makeIC.py 1000 0 : generate 1000 particles on circular orbits
Expand Down
2 changes: 0 additions & 2 deletions examples/GravityTests/NFW_Halo/makeIC.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@
################################################################################

import numpy as np
import matplotlib.pyplot as plt
from astropy import units
import h5py as h5

C = 8.0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import numpy as np
from matplotlib import pyplot as plt
import argparse
from scipy.optimize import curve_fit
import h5py

# Parse user input
Expand Down
1 change: 0 additions & 1 deletion examples/HydroTests/BlobTest_3D/makeIC.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"""

import numpy as np
import h5py

from unyt import cm, g, s, erg
from unyt.unit_systems import cgs_unit_system
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
import numpy as np
import matplotlib
import matplotlib.pyplot as plt
import os
from unyt import s, pc, Myr, kb, mp, cm, K, erg, g, G, km
import h5py
from unyt import s, kb, mp
import glob


Expand Down
2 changes: 0 additions & 2 deletions examples/HydroTests/EvrardCollapse_3D/plotEnergy.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@
matplotlib.use("Agg")
import matplotlib.pyplot as plt
import numpy as np
from scipy import stats
import sys

plt.style.use("../../../tools/stylesheets/mnras.mplstyle")

Expand Down
1 change: 0 additions & 1 deletion examples/HydroTests/Gradients/makeICs.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
################################################################################

import h5py
import random
import numpy as np
import sys

Expand Down
1 change: 0 additions & 1 deletion examples/HydroTests/Gradients/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
#
################################################################################

import scipy as sp
import pylab as pl
import numpy as np
import h5py
Expand Down
1 change: 0 additions & 1 deletion examples/HydroTests/KelvinHelmholtz_2D/makeIC.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@

import h5py
from numpy import *
import sys

# Generates a swift IC file for the Kelvin-Helmholtz vortex in a periodic box

Expand Down
2 changes: 0 additions & 2 deletions examples/HydroTests/KelvinHelmholtz_2D/makeMovieSwiftsimIO.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@
"""

import os
import h5py as h5
import numpy as np
import scipy.interpolate as si

from swiftsimio import load
from swiftsimio.visualisation import project_gas_pixel_grid
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@

import numpy as np
from scipy import special
import matplotlib.pyplot as plt
import h5py

G = 4.299e-6
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
import numpy as np
import h5py
import matplotlib.pyplot as plt
import scipy.optimize as sco


Nmax = 2001
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@
import numpy as np
import h5py
import matplotlib.pyplot as plt
from matplotlib.colors import BoundaryNorm
from matplotlib.ticker import MaxNLocator
import scipy.optimize as sco
import os

Expand Down
1 change: 0 additions & 1 deletion examples/IsolatedGalaxy/IsolatedGalaxy_feedback/SFH.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
Written by James Willis (james.s.willis@durham.ac.uk)
"""

import glob
import h5py as h5
import numpy as np
import matplotlib.pyplot as plt
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@

matplotlib.use("Agg")
from pylab import *
from scipy import stats
import h5py
import numpy as np
import glob
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
import numpy as np
import h5py
import matplotlib.pyplot as plt
import scipy.optimize as sco


Nmax = 2001
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@
import numpy as np
import h5py
import matplotlib.pyplot as plt
from matplotlib.colors import BoundaryNorm
from matplotlib.ticker import MaxNLocator
import scipy.optimize as sco
import os

Expand Down
1 change: 0 additions & 1 deletion tools/analyse_dump_cells.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
import pylab as pl
import numpy as np
import sys
import pandas

xcol = 0
ycol = 1
Expand Down
1 change: 0 additions & 1 deletion tools/convert_snapshot_to_ICs.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
"""

from swiftsimio import Writer, load
import numpy as np
import unyt
import os

Expand Down
5 changes: 0 additions & 5 deletions tools/parallel_replicate_ICs.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,18 +39,13 @@
"""

import h5py as h
import numpy as np
import matplotlib

matplotlib.use("Agg")
from pylab import *
import os.path
from tqdm import tqdm
from tqdm import trange
import time
from numba import jit, prange
from swiftsimio import Writer
from swiftsimio.units import cosmo_units

replicate = 1
box_size = 1
Expand Down
1 change: 0 additions & 1 deletion tools/plot_gravity_checks.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import sys
import glob
import re
import numpy as np
import matplotlib.pyplot as plt

Expand Down
1 change: 0 additions & 1 deletion tools/plot_scaling_results.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
import re
import numpy as np
import matplotlib.pyplot as plt
import scipy.stats
import ntpath

params = {
Expand Down
Loading