Skip to content
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 astLib/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
"""

__all__=['astCalc', 'astCoords', 'astImages', 'astPlots', 'astStats', 'astWCS', 'astSED']
__version__ = '0.13.1'
__version__ = '0.13.2'
11 changes: 5 additions & 6 deletions astLib/astSED.py
Original file line number Diff line number Diff line change
Expand Up @@ -657,9 +657,9 @@ def __init__(self, normalise = False):

VEGA_SED_PATH=astLib.__path__[0]+os.path.sep+"data"+os.path.sep+"bohlin2006_Vega.sed" # from HST CALSPEC

inFile=open(VEGA_SED_PATH, "r")
lines=inFile.readlines()
with open(VEGA_SED_PATH, "r") as inFile:
lines=inFile.readlines()

wavelength=[]
flux=[]
for line in lines:
Expand Down Expand Up @@ -698,9 +698,8 @@ class StellarPopulation:
"""
def __init__(self, fileName, ageColumn = 0, wavelengthColumn = 1, fluxColumn = 2):

inFile=open(fileName, "r")
lines=inFile.readlines()
inFile.close()
with open(fileName, "r") as inFile:
lines=inFile.readlines()

self.fileName=fileName

Expand Down
3 changes: 1 addition & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
from setuptools.command.build_ext import build_ext
from setuptools.extension import Extension
import sysconfig
from pkg_resources import require

topDir = os.getcwd()
sourceDir = "PyWCSTools"+os.path.sep+"wcssubs-3.9.7"+os.path.sep
Expand Down Expand Up @@ -58,7 +57,7 @@ def build_extensions(self):
build_ext.build_extensions(self)

setup(name='astLib',
version='0.13.1',
version='0.13.2',
packages=['astLib', 'PyWCSTools'],
package_data={'astLib': ['data/*']},
cmdclass={"build_ext": build_PyWCSTools_ext},
Expand Down
Loading