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

Change name of ccdproc.py to core.py #102

Merged
merged 1 commit into from
Jun 2, 2014
Merged
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
2 changes: 1 addition & 1 deletion ccdproc/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
__githash__ = ''

# set up namespace
from .ccdproc import *
from .core import *
from .ccddata import *
from .combiner import *

Expand Down
2 changes: 1 addition & 1 deletion ccdproc/ccddata.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ def to_hdu(self):
hdulist : astropy.io.fits.HDUList object

"""
from .ccdproc import _short_names
from .core import _short_names

header = fits.Header()
for k, v in self.header.items():
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions ccdproc/log_meta.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from astropy.nddata import NDData
from astropy import units as u

import ccdproc.ccdproc # really only need Keyword from ccdproc
import ccdproc # really only need Keyword from ccdproc

__all__ = []

Expand Down Expand Up @@ -92,7 +92,7 @@ def _insert_in_metadata(metadata, arg):
if isinstance(arg, six.string_types):
# add the key, no value
metadata[arg] = None
elif isinstance(arg, ccdproc.ccdproc.Keyword):
elif isinstance(arg, ccdproc.Keyword):
metadata[arg.name] = arg.value
else:
try:
Expand Down
2 changes: 1 addition & 1 deletion ccdproc/tests/test_ccddata.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ def test_to_hdu_long_metadata_item(ccd_data):
# auto-logging, and we are supposed to handle that.

# So, a nice long command:
from ..ccdproc import subtract_dark, _short_names
from ..core import subtract_dark, _short_names

dark = CCDData(np.zeros_like(ccd_data.data), unit="adu")
result = subtract_dark(ccd_data, dark, dark_exposure=30 * u.second,
Expand Down
2 changes: 1 addition & 1 deletion ccdproc/tests/test_ccdproc.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
from astropy.tests.helper import pytest

from ..ccddata import CCDData, electron, adu
from ..ccdproc import *
from ..core import *


# test creating variance
Expand Down
4 changes: 2 additions & 2 deletions ccdproc/tests/test_ccdproc_logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
from astropy.tests.helper import pytest
import astropy.units as u

from ..ccdproc import subtract_bias, create_variance, Keyword
from ..ccddata import CCDData
from .. import subtract_bias, create_variance, Keyword, CCDData
#from ..ccddata import CCDData

@pytest.mark.parametrize('key', [
'short',
Expand Down
2 changes: 1 addition & 1 deletion ccdproc/tests/test_cosmicray.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from astropy.tests.helper import pytest
from astropy.utils import NumpyRNGContext

from ..ccdproc import *
from ..core import *

import os

Expand Down
2 changes: 1 addition & 1 deletion ccdproc/tests/test_gain.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
import astropy.units as u

from ..ccddata import electron
from ..ccdproc import *
from ..core import *


# tests for gain
Expand Down
2 changes: 1 addition & 1 deletion ccdproc/tests/test_keyword.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from astropy.units import Quantity
from astropy.io import fits

from ..ccdproc import Keyword
from ..core import Keyword


def test_keyword_init():
Expand Down