Skip to content

Commit

Permalink
Renaming utils -> util
Browse files Browse the repository at this point in the history
  • Loading branch information
bmorris3 committed Dec 3, 2018
1 parent 4e59ed0 commit 24a05cf
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
2 changes: 1 addition & 1 deletion arcesetc/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ class UnsupportedPythonError(Exception):
if not _ASTROPY_SETUP_:
# For egg_info test builds to pass, put package imports here.
from .plots import *
from .utils import *
from .util import *
11 changes: 4 additions & 7 deletions arcesetc/plots.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import numpy as np
import astropy.units as u
from .utils import (closest_target, archive, scale_flux,
get_closest_order, matrix_row_to_spectrum,
sn_to_exp_time)
import matplotlib.pyplot as plt
from .util import (closest_target, archive, scale_flux,
get_closest_order, matrix_row_to_spectrum,
sn_to_exp_time)

__all__ = ['plot_order_counts', 'plot_order_sn']

Expand Down Expand Up @@ -86,8 +87,6 @@ def plot_order_counts(sptype, wavelength, V, exp_time=None,
wave, flux = matrix_row_to_spectrum(matrix, closest_order)
flux *= scale_flux(archive[target], V)

import matplotlib.pyplot as plt

fig, ax = plt.subplots()

if exp_time is not None and signal_to_noise is None:
Expand Down Expand Up @@ -189,8 +188,6 @@ def plot_order_sn(sptype, wavelength, V, exp_time=None, signal_to_noise=None,
wave, flux = matrix_row_to_spectrum(matrix, closest_order)
flux *= scale_flux(archive[target], V)

import matplotlib.pyplot as plt

fig, ax = plt.subplots()

if exp_time is not None:
Expand Down
File renamed without changes.

0 comments on commit 24a05cf

Please sign in to comment.