Skip to content

Commit

Permalink
fix version control
Browse files Browse the repository at this point in the history
  • Loading branch information
robelgeda committed May 21, 2020
1 parent 9475172 commit 6356ab9
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 15 deletions.
18 changes: 12 additions & 6 deletions stips/__init__.py
Original file line number Diff line number Diff line change
@@ -1,23 +1,29 @@
from __future__ import absolute_import

import os

# make use of astropy affiliate framework to set __version__, __githash__, and
# add the test() helper function

from ._astropy_init import *

__all__ = ['astro_image', 'errors', 'galaxy_module', 'instruments', 'observation_module', 'scene_module', 'stellar_module', 'utilities', 'version', 'test']
# Don't modify the line above, or this line!
import automodinit, os
automodinit.automodinit(__name__, __file__, globals())
del automodinit
__all__ = ['astro_image', 'errors', 'galaxy_module', 'instruments',
'observation_module', 'scene_module', 'stellar_module',
'utilities', 'version', '__version__', 'test']

try:
from .version import version as __version__
except ImportError:
__version__ = 'dev'
version = __version__

# Local Definitions

from .astro_image import AstroImage
from .instruments import Instrument
from .observation_module import ObservationModule
from .scene_module import SceneModule
from .version import __version__

from .utilities import GetStipsData, internet, CachedJbtBackground, __grid__

__grid__pandeia__version__ = __grid__.__pandeia__version__
Expand Down
5 changes: 1 addition & 4 deletions stips/astro_image/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
__all__ = ['astro_image']
# Don't modify the line above, or this line!
import automodinit
automodinit.automodinit(__name__, __file__, globals())
del automodinit

# Local Definitions
from .astro_image import AstroImage
2 changes: 1 addition & 1 deletion stips/astro_image/astro_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
from cStringIO import StringIO

#Local Modules
from stips.version import __version__ as stips_version
from .. import __version__ as stips_version
from ..utilities import OffsetPosition
from ..utilities import overlapadd2
from ..utilities import overlapaddparallel
Expand Down
2 changes: 1 addition & 1 deletion stips/data/CreatePhoenixGrid.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
import numpy as np
import pysynphot as ps
from stips.utilities import InstrumentList
from stips import __version__ as stips_version_info
from .. import __version__ as stips_version_info
from astropy.io import fits as pyfits

print("STIPS Version: {}".format(stips_version_info))
Expand Down
2 changes: 1 addition & 1 deletion stips/instruments/wfi.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
from .wfirst_instrument import WfirstInstrument
from ..utilities import OffsetPosition

from stips.version import __version__ as stips_version
from .. import __version__ as stips_version

class WFI(WfirstInstrument):
__classtype__ = "detector"
Expand Down
2 changes: 1 addition & 1 deletion stips/utilities/utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
from jwst_backgrounds.jbt import background
from photutils.psf.models import GriddedPSFModel

from stips.version import __version__ as __stips__version__
from .. import __version__ as __stips__version__

#-----------
class classproperty(object):
Expand Down
1 change: 0 additions & 1 deletion stips/version/__init__.py

This file was deleted.

0 comments on commit 6356ab9

Please sign in to comment.