Skip to content

Commit 28380be

Browse files
committed
v1.0.4
fix tests and [SII] data.
1 parent 24d5eb9 commit 28380be

File tree

4 files changed

+27
-3
lines changed

4 files changed

+27
-3
lines changed

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ github_project = astropy/astropy
4141
# install_requires = astropy, scipy, matplotlib, cartopy, spectral_cube
4242
install_requires = astropy, numpy, matplotlib, scipy, seaborn
4343
# version should be PEP440 compatible (https://www.python.org/dev/peps/pep-0440/)
44-
version = 1.0.3
44+
version = 1.0.4
4545
# Note: you will also need to change this in your package's __init__.py
4646
minimum_python_version = 3.6
4747

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
builtins._ASTROPY_PACKAGE_NAME_ = PACKAGENAME
7070

7171
# VERSION should be PEP440 compatible (http://www.python.org/dev/peps/pep-0440)
72-
VERSION = metadata.get('version', '1.0.3')
72+
VERSION = metadata.get('version', '1.0.4')
7373

7474
# Indicates if this version is a release version
7575
RELEASE = 'dev' not in VERSION

whampy/skySurvey.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ def __init__(self, filename = None, mode = 'local', idl_var = None,
236236
if survey in ["mw", "ha", "sky_survey", "ss", "mw_ha"]:
237237
filename = os.path.join(directory, "data/wham-ss-DR1-v161116-170912.fits")
238238
elif survey in ["sii", "mw_sii"]:
239-
filename = os.path.join(directory, "data/sii")
239+
filename = os.path.join(directory, "data/sii.sav")
240240
elif survey in ["lmc", "lmc_ha"]:
241241
filename = os.path.join(directory, "data/lmc_combined_map.sav")
242242
elif survey in ["smc", "smc_ha"]:

whampy/tests/test_load_SkySurvey.py

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,30 @@ def test_remote_load():
1818
survey = SkySurvey(mode = "remote")
1919
assert survey["VELOCITY"].unit == u.km/u.s
2020

21+
def test_load_smc():
22+
"""
23+
Ensure smc survey loads
24+
"""
25+
26+
smc = SkySurvey(survey = "smc_ha")
27+
assert smc["VELOCITY"].unit == u.km/u.s
28+
29+
def test_load_lmc():
30+
"""
31+
Ensure smc survey loads
32+
"""
33+
34+
smc = SkySurvey(survey = "lmc_ha")
35+
assert smc["VELOCITY"].unit == u.km/u.s
36+
37+
def test_load_sii():
38+
"""
39+
Ensure sii Milky Way survey loads
40+
"""
41+
42+
sii = SkySurvey(survey = "mw_sii")
43+
assert sii["VELOCITY"].unit == u.km/u.s
44+
2145
survey = SkySurvey()
2246

2347
def test_idlsav_load():

0 commit comments

Comments
 (0)