Skip to content

Commit

Permalink
complete the change of package name. set the version number to 0.8
Browse files Browse the repository at this point in the history
  • Loading branch information
hema-ted committed Feb 14, 2020
1 parent 7bd4f8b commit 69adbf4
Show file tree
Hide file tree
Showing 31 changed files with 19 additions and 932 deletions.
2 changes: 1 addition & 1 deletion doc/tutorial.rst
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ For parallel execution, use the following command
$ mpiexec [-n num_of_processes] python -m pyzfs.exec.runzfs [--flags]
where `num_of_processors` is the number of processes.
where `num_of_processes` is the number of processes. **pyzfs** distributes the calculations on a square grid of processes. If `num_of_processes` is not a square number, **pyzfs** will use the largest square number of processes smaller than `num_of_processes` for calculations.

Acceptable flags [`--flags`] are listed below, for detailed explanation see `pyzfs.exec.runzfs.py`.

Expand Down
23 changes: 0 additions & 23 deletions hspin/__init__.py

This file was deleted.

10 changes: 10 additions & 0 deletions pyzfs/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
from __future__ import print_function, division
import pkg_resources
from .common.io import indent
from .common.parallel import mpiroot

if mpiroot:
version = pkg_resources.require("PyZFS")[0].version
print("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~")
print("PyZFS version {}".format(version))
print("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~")
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
11 changes: 5 additions & 6 deletions hspin/zfs/main.py → pyzfs/zfs/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ def solve(self):
if self.pgrid.onroot:

print("\n\nTotal D tensor (MHz): ")
pprint(self.D)
print(self.D)
print("D eigenvalues (MHz): ")
print(self.ev)
print("D eigenvectors: ")
Expand All @@ -183,7 +183,7 @@ def solve(self):
print(self.evc[:, 2])
print("Dx, Dy, Dz (|Dz| > |Dx| > |Dy|) (MHz): ")
print(dx, dy, dz)
print("D = {:.2f} MHz, E = {:.2f} MHz".format(self.Dvalue, self.Evalue))
print("Scalar D = {:.2f} MHz, E = {:.2f} MHz".format(self.Dvalue, self.Evalue))

self.print_memory_usage()

Expand Down Expand Up @@ -221,11 +221,10 @@ def get_xml(self):
"""
from lxml import etree
from .. import __code__, __version__, __git_summary__
from .. import version
root = etree.Element("root")
etree.SubElement(root, "code").text = __code__
etree.SubElement(root, "version").text = __version__
etree.SubElement(root, "git_summary").text = __git_summary__
etree.SubElement(root, "code").text = "PyZFS"
etree.SubElement(root, "version").text = version
etree.SubElement(root, "object").text = self.__class__.__name__
etree.SubElement(root, "DTensor", unit="MHz").text = np.array2string(self.D)
etree.SubElement(root, "D", unit="MHz").text = "{:.2f}".format(self.Dvalue)
Expand Down
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
from setuptools import setup

setup(
name = "pyzfs",
version = "0.0.0",
name = "PyZFS",
version = "0.8",
author = "He Ma, Marco Govoni",
author_email = "[email protected], [email protected]",
description = "A python code to compute zero-field splitting tensor",
description = "A python code to compute zero-field splitting tensors",
packages=["pyzfs"],
classifiers=[],
install_requires=[
Expand Down
869 changes: 0 additions & 869 deletions test/qe_hdf5/O_ONCV_PBE-1.0.xml

This file was deleted.

30 changes: 0 additions & 30 deletions test/qe_hdf5/pwscf.in

This file was deleted.

0 comments on commit 69adbf4

Please sign in to comment.