Skip to content

Commit

Permalink
Update version and change log for v0.1.5
Browse files Browse the repository at this point in the history
  • Loading branch information
mjwen committed Feb 14, 2020
1 parent 6e0b821 commit 2ef433c
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 12 deletions.
12 changes: 11 additions & 1 deletion docs/source/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,17 @@
Change Log
==========

v0.1.4 (2019/8/34)
v0.1.5 (2020/2/13)
==================

- add neighborlist utility, making NN model independent on kimpy

- add calculator to deal with multiple species for NN model

- update dropout layer to be compatible with the pytorch 1.3


v0.1.4 (2019/8/24)
==================

- add support for the geodesic Levenberg-Marquardt minimization algorithm
Expand Down
3 changes: 2 additions & 1 deletion kliff/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from .log import Logger

__version__ = "0.1.4"

__version__ = "0.1.5"

logger = Logger(level="info")
20 changes: 10 additions & 10 deletions utils/update_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,26 +3,26 @@

def update_version(version, path, key, in_quotes=False, extra_space=False):
"""Update version given in `key=version` structure."""
with open(path, 'r') as fin:
with open(path, "r") as fin:
lines = fin.readlines()
with open(path, 'w') as fout:
with open(path, "w") as fout:
for line in lines:
if key in line:
idx = line.index('=')
idx = line.index("=")
line = line[: idx + 1]
if extra_space:
line += ' '
line += " "
if in_quotes:
v = "'{}'".format(version)
else:
v = '{}'.format(version)
fout.write(line + v + '\n')
v = "{}".format(version)
fout.write(line + v + "\n")
else:
fout.write(line)


if __name__ == '__main__':
kliff_v = '0.1.4'
if __name__ == "__main__":
kliff_v = "0.1.5"
kliff_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
path = os.path.join(kliff_dir, 'kliff', '__init__.py')
update_version(kliff_v, path, '__version__', True, True)
path = os.path.join(kliff_dir, "kliff", "__init__.py")
update_version(kliff_v, path, "__version__", True, True)

0 comments on commit 2ef433c

Please sign in to comment.