Skip to content

Commit 1e91f7c

Browse files
authored
Merge pull request #169 from rbiswas4/Issue#166/define_version
changed version definition and bumped version
2 parents ac14043 + ceb8ca9 commit 1e91f7c

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

opsimsummary/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from .summarize_opsim import *
44
from . import summarize_opsim
55
from . import simlib
6-
from .version import __VERSION__
6+
from .version import __VERSION__ as __version__
77
here = __file__
88
basedir = os.path.split(here)[0]
99
example_data = os.path.join(basedir, 'example_data')

opsimsummary/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__VERSION__ = "1.3.4"
1+
__VERSION__ = "1.3.6"

tests/test_healpix.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def setUpClass(cls):
4646
h = oss.HealPixelizedOpSim(opsimDF=opsimdf, NSIDE=cls.nside, source=dbname)
4747
h.doPreCalcs()
4848
try:
49-
version = oss.__VERSION__
49+
version = oss.__version__
5050
h.writeToDB(cls.newDB, version=version)
5151
except:
5252
cls.tearDownClass()
@@ -96,7 +96,7 @@ def test_writemethod(self):
9696
self.assertEqual(len(y), 1)
9797
self.assertEqual(len(y[0]), 10)
9898
# Check the version
99-
version = oss.__VERSION__
99+
version = oss.__version__
100100
self.assertEqual(y[0][4], version)
101101
self.assertEqual(np.int(y[0][5]), self.nside)
102102
self.assertEqual(np.int(y[0][6]), 4)

tests/test_versionNum.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ def test_versionName():
55
"""
66
The only objective of this test is to check that this is running,
77
"""
8-
version = oss.__VERSION__
8+
version = oss.__version__
99
print("test_versionName")
1010
print("Running version ", version)
1111
return None

0 commit comments

Comments
 (0)