bandplot 0.1.0.1__tar.gz → 0.1.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of bandplot might be problematic. Click here for more details.
- bandplot-0.1.1/PKG-INFO +41 -0
- bandplot-0.1.1/README.rst +17 -0
- {bandplot-0.1.0.1 → bandplot-0.1.1}/bandplot/__init__.py +3 -0
- {bandplot-0.1.0.1 → bandplot-0.1.1}/bandplot/plots.py +32 -32
- {bandplot-0.1.0.1 → bandplot-0.1.1}/bandplot/wrapper.py +17 -9
- bandplot-0.1.1/bandplot.egg-info/PKG-INFO +41 -0
- {bandplot-0.1.0.1 → bandplot-0.1.1}/bandplot.egg-info/SOURCES.txt +1 -0
- {bandplot-0.1.0.1 → bandplot-0.1.1}/setup.py +18 -3
- bandplot-0.1.0.1/PKG-INFO +0 -19
- bandplot-0.1.0.1/bandplot.egg-info/PKG-INFO +0 -19
- {bandplot-0.1.0.1 → bandplot-0.1.1}/LICENSE.txt +0 -0
- {bandplot-0.1.0.1 → bandplot-0.1.1}/bandplot/readdata.py +0 -0
- {bandplot-0.1.0.1 → bandplot-0.1.1}/bandplot.egg-info/dependency_links.txt +0 -0
- {bandplot-0.1.0.1 → bandplot-0.1.1}/bandplot.egg-info/entry_points.txt +0 -0
- {bandplot-0.1.0.1 → bandplot-0.1.1}/bandplot.egg-info/requires.txt +0 -0
- {bandplot-0.1.0.1 → bandplot-0.1.1}/bandplot.egg-info/top_level.txt +0 -0
- {bandplot-0.1.0.1 → bandplot-0.1.1}/setup.cfg +0 -0
bandplot-0.1.1/PKG-INFO
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: bandplot
|
|
3
|
+
Version: 0.1.1
|
|
4
|
+
Summary: bandplot: band structure plot from vaspkit result.
|
|
5
|
+
Home-page: https://github.com/lkccrr/bandplot
|
|
6
|
+
Author: kan
|
|
7
|
+
Author-email: luokan@hrbeu.edu.cn
|
|
8
|
+
License: MIT
|
|
9
|
+
Description: .. image:: https://img.shields.io/pypi/v/pbandplot.svg
|
|
10
|
+
:target: https://pypi.org/project/pbandplot/
|
|
11
|
+
|
|
12
|
+
.. image:: https://img.shields.io/pypi/pyversions/pbandplot.svg
|
|
13
|
+
:target: https://pypi.org/project/pbandplot/
|
|
14
|
+
|
|
15
|
+
pbandplot
|
|
16
|
+
=========
|
|
17
|
+
|
|
18
|
+
pbandplot: Plot the phonon band structure plot from phonopy result.
|
|
19
|
+
|
|
20
|
+
* To execute ``pbandplot -h`` for the parameters to use.
|
|
21
|
+
* Example::
|
|
22
|
+
|
|
23
|
+
pbandplot -i band.dat -o pband.png -l g m k g -d projected_dos.dat
|
|
24
|
+
pbandplot -b 23 100 -l g m k g -y -2 110
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
Keywords: VASP band structure plot
|
|
28
|
+
Platform: Unix
|
|
29
|
+
Platform: Windows
|
|
30
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
31
|
+
Classifier: Programming Language :: Python
|
|
32
|
+
Classifier: Programming Language :: Python :: 3
|
|
33
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
34
|
+
Classifier: Programming Language :: Python :: 3.6
|
|
35
|
+
Classifier: Programming Language :: Python :: 3.7
|
|
36
|
+
Classifier: Programming Language :: Python :: 3.8
|
|
37
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
38
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
39
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
40
|
+
Requires-Python: >=3.6
|
|
41
|
+
Description-Content-Type: text/x-rst
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
.. image:: https://img.shields.io/pypi/v/pbandplot.svg
|
|
2
|
+
:target: https://pypi.org/project/pbandplot/
|
|
3
|
+
|
|
4
|
+
.. image:: https://img.shields.io/pypi/pyversions/pbandplot.svg
|
|
5
|
+
:target: https://pypi.org/project/pbandplot/
|
|
6
|
+
|
|
7
|
+
pbandplot
|
|
8
|
+
=========
|
|
9
|
+
|
|
10
|
+
pbandplot: Plot the phonon band structure plot from phonopy result.
|
|
11
|
+
|
|
12
|
+
* To execute ``pbandplot -h`` for the parameters to use.
|
|
13
|
+
* Example::
|
|
14
|
+
|
|
15
|
+
pbandplot -i band.dat -o pband.png -l g m k g -d projected_dos.dat
|
|
16
|
+
pbandplot -b 23 100 -l g m k g -y -2 110
|
|
17
|
+
|
|
@@ -8,11 +8,11 @@ def Noneispin(EXPORT, figsize, vertical, arr, bands, ticks, labels, linestyle, l
|
|
|
8
8
|
plt.plot(arr, bands.T, color=color[0], linewidth=0.8, linestyle=linestyle[0])
|
|
9
9
|
plt.tick_params(axis='y', which='minor', color='gray')
|
|
10
10
|
|
|
11
|
-
plt.axhline(linewidth=0.
|
|
11
|
+
plt.axhline(linewidth=0.5, linestyle=(0, (3, 2, 1, 2, 1, 2)), c='gray')
|
|
12
12
|
if len(ticks) > 2:
|
|
13
13
|
ticks[0],ticks[-1] = arr[0],arr[-1]
|
|
14
14
|
for i in ticks[1:-1]:
|
|
15
|
-
plt.axvline(i, linewidth=0.
|
|
15
|
+
plt.axvline(i, linewidth=0.5, linestyle=(0, (3, 2, 1, 2, 1, 2)), c='gray')
|
|
16
16
|
|
|
17
17
|
plt.xticks(ticks,labels)
|
|
18
18
|
plt.legend(legend, frameon=False, prop={'size':'medium'}, loc=location)
|
|
@@ -33,11 +33,11 @@ def Ispin(EXPORT, figsize, vertical, arr, bands, ticks, labels, linestyle, legen
|
|
|
33
33
|
p_do = plt.plot(arr, bands[1].T, color=color[1], linewidth=0.8, linestyle=linestyle[1])
|
|
34
34
|
plt.legend([p_up[0], p_do[0]], ['up', 'down'], frameon=False, prop={'style':'italic', 'size':'medium'}, alignment='left', loc=location, title=legend[0], title_fontproperties={'size':'medium'})
|
|
35
35
|
plt.tick_params(axis='y', which='minor', color='gray')
|
|
36
|
-
plt.axhline(linewidth=0.
|
|
36
|
+
plt.axhline(linewidth=0.5, linestyle=(0, (3, 2, 1, 2, 1, 2)), c='gray')
|
|
37
37
|
if len(ticks) > 2:
|
|
38
38
|
ticks[0],ticks[-1] = arr[0],arr[-1]
|
|
39
39
|
for i in ticks[1:-1]:
|
|
40
|
-
plt.axvline(i, linewidth=0.
|
|
40
|
+
plt.axvline(i, linewidth=0.5, linestyle=(0, (3, 2, 1, 2, 1, 2)), c='gray')
|
|
41
41
|
|
|
42
42
|
plt.xlim(arr[0], arr[-1])
|
|
43
43
|
plt.ylim(vertical)
|
|
@@ -56,19 +56,19 @@ def Dispin(EXPORT, figsize, vertical, arr, bands, ticks, labels, linestyle, lege
|
|
|
56
56
|
|
|
57
57
|
ax1.plot(arr, bands[0].T, color=color[0], linewidth=0.8, linestyle=linestyle[0])
|
|
58
58
|
ax2.plot(arr, bands[1].T, color=color[1], linewidth=0.8, linestyle=linestyle[1])
|
|
59
|
-
ax1.legend(['up'], frameon=False, prop={'style':'italic', 'size':'medium'}, alignment='left',
|
|
60
|
-
ax2.legend(['down'], frameon=False, prop={'style':'italic', 'size':'medium'}, alignment='left',
|
|
59
|
+
ax1.legend(['up'], frameon=False, prop={'style':'italic', 'size':'medium'}, alignment='left', loc=location, title=legend[0], title_fontproperties={'size':'medium'})
|
|
60
|
+
ax2.legend(['down'], frameon=False, prop={'style':'italic', 'size':'medium'}, alignment='left', loc=location)
|
|
61
61
|
ax1.tick_params(axis='y', which='minor', color='gray')
|
|
62
62
|
ax2.tick_params(axis='y', which='minor', color='gray')
|
|
63
63
|
|
|
64
|
-
ax1.axhline(linewidth=0.
|
|
65
|
-
ax2.axhline(linewidth=0.
|
|
64
|
+
ax1.axhline(linewidth=0.5, linestyle=(0, (3, 2, 1, 2, 1, 2)), c='gray')
|
|
65
|
+
ax2.axhline(linewidth=0.5, linestyle=(0, (3, 2, 1, 2, 1, 2)), c='gray')
|
|
66
66
|
ax2.set_yticklabels([])
|
|
67
67
|
if len(ticks) > 2:
|
|
68
68
|
ticks[0],ticks[-1] = arr[0],arr[-1]
|
|
69
69
|
for i in ticks[1:-1]:
|
|
70
|
-
ax1.axvline(i, linewidth=0.
|
|
71
|
-
ax2.axvline(i, linewidth=0.
|
|
70
|
+
ax1.axvline(i, linewidth=0.5, linestyle=(0, (3, 2, 1, 2, 1, 2)), c='gray')
|
|
71
|
+
ax2.axvline(i, linewidth=0.5, linestyle=(0, (3, 2, 1, 2, 1, 2)), c='gray')
|
|
72
72
|
|
|
73
73
|
ax1.set_xlim(arr[0], arr[-1])
|
|
74
74
|
ax1.set_ylim(vertical)
|
|
@@ -104,14 +104,14 @@ def NoneispinWd(EXPORT, figsize, vertical, horizontal, arr, bands, ticks, labels
|
|
|
104
104
|
ax2.minorticks_on()
|
|
105
105
|
ax2.tick_params(axis='both', which='minor', color='gray')
|
|
106
106
|
ax2.set_yticklabels([])
|
|
107
|
-
ax2.legend(elements, frameon=False, prop={'size':'
|
|
108
|
-
ax1.axhline(linewidth=0.
|
|
109
|
-
ax2.axhline(linewidth=0.
|
|
110
|
-
ax2.axvline(linewidth=0.
|
|
107
|
+
ax2.legend(elements, frameon=False, prop={'size':'small'}, alignment='left', loc=location, title="Density of states", title_fontproperties={'size':'small'})
|
|
108
|
+
ax1.axhline(linewidth=0.5, linestyle=(0, (3, 2, 1, 2, 1, 2)), c='gray')
|
|
109
|
+
ax2.axhline(linewidth=0.5, linestyle=(0, (3, 2, 1, 2, 1, 2)), c='gray')
|
|
110
|
+
ax2.axvline(linewidth=0.5, linestyle=(0, (3, 2, 1, 2, 1, 2)), c='gray')
|
|
111
111
|
if len(ticks) > 2:
|
|
112
112
|
ticks[0],ticks[-1] = arr[0],arr[-1]
|
|
113
113
|
for i in ticks[1:-1]:
|
|
114
|
-
ax1.axvline(i,linewidth=0.
|
|
114
|
+
ax1.axvline(i,linewidth=0.5,linestyle=(0, (3, 2, 1, 2, 1, 2)),c='gray')
|
|
115
115
|
|
|
116
116
|
ax1.set_xlim(arr[0], arr[-1])
|
|
117
117
|
ax1.set_ylim(vertical)
|
|
@@ -133,7 +133,7 @@ def IspinWd(EXPORT, figsize, vertical, horizontal, arr, bands, ticks, labels, da
|
|
|
133
133
|
|
|
134
134
|
p_up = ax1.plot(arr, bands[0].T, color=color[0], linewidth=0.8, linestyle=linestyle[0])
|
|
135
135
|
p_do = ax1.plot(arr, bands[1].T, color=color[1], linewidth=0.8, linestyle=linestyle[1])
|
|
136
|
-
ax1.legend([p_up[0], p_do[0]], ['up', 'down'], frameon=False, prop={'style':'italic', 'size':'
|
|
136
|
+
ax1.legend([p_up[0], p_do[0]], ['up', 'down'], frameon=False, prop={'style':'italic', 'size':'small'}, alignment='left', loc=location, title=legend[0], title_fontproperties={'size':'small'})
|
|
137
137
|
num = len(index_f)
|
|
138
138
|
if num + 2 > len(color):
|
|
139
139
|
color = color + [''] * (num + 2 - len(color))
|
|
@@ -150,15 +150,15 @@ def IspinWd(EXPORT, figsize, vertical, horizontal, arr, bands, ticks, labels, da
|
|
|
150
150
|
ax1.tick_params(axis='y', which='minor', color='gray')
|
|
151
151
|
ax2.minorticks_on()
|
|
152
152
|
ax2.tick_params(axis='both', which='minor', color='gray')
|
|
153
|
-
ax2.axvline(linewidth=0.
|
|
153
|
+
ax2.axvline(linewidth=0.5, linestyle=(0, (3, 2, 1, 2, 1, 2)), c='gray')
|
|
154
154
|
ax2.set_yticklabels([])
|
|
155
|
-
ax2.legend(elements, frameon=False, prop={'size':'
|
|
156
|
-
ax1.axhline(linewidth=0.
|
|
157
|
-
ax2.axhline(linewidth=0.
|
|
155
|
+
ax2.legend(elements, frameon=False, prop={'size':'small'}, alignment='left', loc=location, title="Density of states", title_fontproperties={'size':'small'})
|
|
156
|
+
ax1.axhline(linewidth=0.5, linestyle=(0, (3, 2, 1, 2, 1, 2)), c='gray')
|
|
157
|
+
ax2.axhline(linewidth=0.5, linestyle=(0, (3, 2, 1, 2, 1, 2)), c='gray')
|
|
158
158
|
if len(ticks) > 2:
|
|
159
159
|
ticks[0],ticks[-1] = arr[0],arr[-1]
|
|
160
160
|
for i in ticks[1:-1]:
|
|
161
|
-
ax1.axvline(i,linewidth=0.
|
|
161
|
+
ax1.axvline(i,linewidth=0.5, linestyle=(0, (3, 2, 1, 2, 1, 2)), c='gray')
|
|
162
162
|
|
|
163
163
|
ax1.set_xlim(arr[0], arr[-1])
|
|
164
164
|
ax1.set_ylim(vertical)
|
|
@@ -180,8 +180,8 @@ def DispinWd(EXPORT, figsize, vertical, horizontal, arr, bands, ticks, labels, d
|
|
|
180
180
|
|
|
181
181
|
ax1.plot(arr, bands[0].T, color=color[0], linewidth=0.8, linestyle=linestyle[0])
|
|
182
182
|
ax2.plot(arr, bands[1].T, color=color[1], linewidth=0.8, linestyle=linestyle[1])
|
|
183
|
-
ax1.legend(['up'], frameon=False, prop={'style':'italic', 'size':'
|
|
184
|
-
ax2.legend(['down'], frameon=False, prop={'style':'italic', 'size':'
|
|
183
|
+
ax1.legend(['up'], frameon=False, prop={'style':'italic', 'size':'small'}, alignment='left', loc=location, title=legend[0], title_fontproperties={'size':'small'})
|
|
184
|
+
ax2.legend(['down'], frameon=False, prop={'style':'italic', 'size':'small'}, alignment='left', loc=location)
|
|
185
185
|
ax1.tick_params(axis='y', which='minor', color='gray')
|
|
186
186
|
ax2.tick_params(axis='y', which='minor', color='gray')
|
|
187
187
|
ax3.minorticks_on()
|
|
@@ -199,19 +199,19 @@ def DispinWd(EXPORT, figsize, vertical, horizontal, arr, bands, ticks, labels, d
|
|
|
199
199
|
else:
|
|
200
200
|
ax3.plot(dele[index_f[i][0]].T[index_f[i][1]], darr[index_f[i][0]], linewidth=0.8, linestyle=linestyle[i+2])
|
|
201
201
|
|
|
202
|
-
ax3.axvline(linewidth=0.
|
|
202
|
+
ax3.axvline(linewidth=0.5, linestyle=(0, (3, 2, 1, 2, 1, 2)), c='gray')
|
|
203
203
|
ax2.set_yticklabels([])
|
|
204
204
|
ax3.set_yticklabels([])
|
|
205
|
-
ax3.legend(elements, frameon=False, prop={'size':'
|
|
205
|
+
ax3.legend(elements, frameon=False, prop={'size':'small'}, alignment='left', loc=location, title="Density of states", title_fontproperties={'size':'small'})
|
|
206
206
|
|
|
207
|
-
ax1.axhline(linewidth=0.
|
|
208
|
-
ax2.axhline(linewidth=0.
|
|
209
|
-
ax3.axhline(linewidth=0.
|
|
207
|
+
ax1.axhline(linewidth=0.5, linestyle=(0, (3, 2, 1, 2, 1, 2)), c='gray')
|
|
208
|
+
ax2.axhline(linewidth=0.5, linestyle=(0, (3, 2, 1, 2, 1, 2)), c='gray')
|
|
209
|
+
ax3.axhline(linewidth=0.5, linestyle=(0, (3, 2, 1, 2, 1, 2)), c='gray')
|
|
210
210
|
if len(ticks) > 2:
|
|
211
211
|
ticks[0],ticks[-1] = arr[0],arr[-1]
|
|
212
212
|
for i in ticks[1:-1]:
|
|
213
|
-
ax1.axvline(i,linewidth=0.
|
|
214
|
-
ax2.axvline(i,linewidth=0.
|
|
213
|
+
ax1.axvline(i,linewidth=0.5,linestyle=(0, (3, 2, 1, 2, 1, 2)),c='gray')
|
|
214
|
+
ax2.axvline(i,linewidth=0.5,linestyle=(0, (3, 2, 1, 2, 1, 2)),c='gray')
|
|
215
215
|
|
|
216
216
|
ax1.set_xlim(arr[0], arr[-1])
|
|
217
217
|
ax1.set_ylim(vertical)
|
|
@@ -261,7 +261,7 @@ def pdosfiles(EXPORT, figsize, vertical, horizontal, darr, dele, index_f, elemen
|
|
|
261
261
|
plt.ylabel('Energy (eV)')
|
|
262
262
|
plt.xlabel('Density of states, electrons/eV')
|
|
263
263
|
|
|
264
|
-
plt.axvline(linewidth=0.
|
|
265
|
-
plt.axhline(linewidth=0.
|
|
264
|
+
plt.axvline(linewidth=0.5, linestyle=(0, (3, 2, 1, 2, 1, 2)), c='gray')
|
|
265
|
+
plt.axhline(linewidth=0.5, linestyle=(0, (3, 2, 1, 2, 1, 2)), c='gray')
|
|
266
266
|
plt.legend(elements, frameon=False, prop={'size':'medium'}, loc=location, title=legend[0], title_fontproperties={'size':'medium'})
|
|
267
267
|
plt.savefig(EXPORT, dpi=750, transparent=True, bbox_inches='tight')
|
|
@@ -9,10 +9,10 @@ Example:
|
|
|
9
9
|
bandplot -i band.dat -o pband.png -l g m k g -d PDOS*
|
|
10
10
|
''',
|
|
11
11
|
formatter_class=argparse.RawDescriptionHelpFormatter)
|
|
12
|
-
parser.add_argument('-v', "--version", action="version", version="bandplot
|
|
12
|
+
parser.add_argument('-v', "--version", action="version", version="bandplot "+get_version(os.path.join(os.path.dirname(__file__), "__init__.py")))
|
|
13
13
|
parser.add_argument('-s', "--size", type=int, nargs=2)
|
|
14
14
|
parser.add_argument('-b', "--divided", action='store_true', help="plot the up and down spin in divided subplot")
|
|
15
|
-
parser.add_argument('-y', "--vertical", type=float, nargs=2, help="energy
|
|
15
|
+
parser.add_argument('-y', "--vertical", type=float, nargs=2, help="energy (eV) range")
|
|
16
16
|
parser.add_argument('-g', "--legend", type=str, nargs=1, help="legend labels")
|
|
17
17
|
parser.add_argument('-a', "--location", type=str.lower, default='best',
|
|
18
18
|
choices=['best', 'upper right', 'upper left', 'lower left', 'lower right', 'right', 'center left', 'center right', 'lower center', 'upper center', 'center'],
|
|
@@ -20,14 +20,14 @@ bandplot -i band.dat -o pband.png -l g m k g -d PDOS*
|
|
|
20
20
|
parser.add_argument('-k', "--linestyle", type=str, nargs='+', default=['-'], help="linestyle: solid; dashed; dashdot; dotted or tuple")
|
|
21
21
|
parser.add_argument('-c', "--color", type=str, nargs='+', default=[],
|
|
22
22
|
help="plot colors: b, blue; g, green; r, red; c, cyan; m, magenta; y, yellow; k, black; w, white")
|
|
23
|
-
parser.add_argument('-i', "--input", default="BAND.dat", type=str, help="plot figure from .dat file")
|
|
24
|
-
parser.add_argument('-o', "--output", default="BAND.png", type=str, help="plot figure filename")
|
|
23
|
+
parser.add_argument('-i', "--input", default="BAND.dat", type=str, help="plot figure from .dat file, default BAND.dat")
|
|
24
|
+
parser.add_argument('-o', "--output", default="BAND.png", type=str, help="plot figure filename, default BAND.png")
|
|
25
25
|
parser.add_argument('-K', "--klabels", default="KLABELS", type=str)
|
|
26
|
-
parser.add_argument('-l', "--labels", type=str.upper, nargs='+', default=[], help='labels for high-symmetry points')
|
|
26
|
+
parser.add_argument('-l', "--labels", type=str.upper, nargs='+', default=[], help='labels for high-symmetry points, such as X S Y K M')
|
|
27
27
|
parser.add_argument('-d', "--dos", type=str, nargs='+', default=[], help="plot DOS from .dat file")
|
|
28
|
-
parser.add_argument('-x', "--horizontal", type=float, nargs=2, help="Density of states, electrons/eV")
|
|
28
|
+
parser.add_argument('-x', "--horizontal", type=float, nargs=2, help="Density of states, electrons/eV range")
|
|
29
29
|
parser.add_argument('-n', "--exchange", action='store_true', help="exchange the x and y axes of DOS")
|
|
30
|
-
parser.add_argument('-p', "--partial", type=str, nargs='+', default=[], help='the partial DOS to plot')
|
|
30
|
+
parser.add_argument('-p', "--partial", type=str, nargs='+', default=[], help='the partial DOS to plot, s p d')
|
|
31
31
|
parser.add_argument('-e', "--elements", type=str, nargs='+', default=[], help="PDOS labels")
|
|
32
32
|
parser.add_argument('-w', "--wratios", type=float, help='width ratio for DOS subplot')
|
|
33
33
|
parser.add_argument('-f', "--font", type=str, default='STIXGeneral', help="font to use")
|
|
@@ -66,8 +66,8 @@ bandplot -i band.dat -o pband.png -l g m k g -d PDOS*
|
|
|
66
66
|
|
|
67
67
|
color = []
|
|
68
68
|
for i in args.color:
|
|
69
|
-
|
|
70
|
-
|
|
69
|
+
j = i.split('*')
|
|
70
|
+
if len(j) == 2:
|
|
71
71
|
color = color + [j[0]] * int(j[1])
|
|
72
72
|
else:
|
|
73
73
|
color.append(i)
|
|
@@ -134,3 +134,11 @@ bandplot -i band.dat -o pband.png -l g m k g -d PDOS*
|
|
|
134
134
|
else:
|
|
135
135
|
print('No .dat file!')
|
|
136
136
|
|
|
137
|
+
def get_version(rel_path: str) -> str:
|
|
138
|
+
with open(rel_path) as fp:
|
|
139
|
+
lines = fp.readlines()
|
|
140
|
+
for line in lines:
|
|
141
|
+
if line.startswith("__version__"):
|
|
142
|
+
delim = '"' if '"' in line else "'"
|
|
143
|
+
return line.split(delim)[1]
|
|
144
|
+
raise RuntimeError("Unable to find version string.")
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: bandplot
|
|
3
|
+
Version: 0.1.1
|
|
4
|
+
Summary: bandplot: band structure plot from vaspkit result.
|
|
5
|
+
Home-page: https://github.com/lkccrr/bandplot
|
|
6
|
+
Author: kan
|
|
7
|
+
Author-email: luokan@hrbeu.edu.cn
|
|
8
|
+
License: MIT
|
|
9
|
+
Description: .. image:: https://img.shields.io/pypi/v/pbandplot.svg
|
|
10
|
+
:target: https://pypi.org/project/pbandplot/
|
|
11
|
+
|
|
12
|
+
.. image:: https://img.shields.io/pypi/pyversions/pbandplot.svg
|
|
13
|
+
:target: https://pypi.org/project/pbandplot/
|
|
14
|
+
|
|
15
|
+
pbandplot
|
|
16
|
+
=========
|
|
17
|
+
|
|
18
|
+
pbandplot: Plot the phonon band structure plot from phonopy result.
|
|
19
|
+
|
|
20
|
+
* To execute ``pbandplot -h`` for the parameters to use.
|
|
21
|
+
* Example::
|
|
22
|
+
|
|
23
|
+
pbandplot -i band.dat -o pband.png -l g m k g -d projected_dos.dat
|
|
24
|
+
pbandplot -b 23 100 -l g m k g -y -2 110
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
Keywords: VASP band structure plot
|
|
28
|
+
Platform: Unix
|
|
29
|
+
Platform: Windows
|
|
30
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
31
|
+
Classifier: Programming Language :: Python
|
|
32
|
+
Classifier: Programming Language :: Python :: 3
|
|
33
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
34
|
+
Classifier: Programming Language :: Python :: 3.6
|
|
35
|
+
Classifier: Programming Language :: Python :: 3.7
|
|
36
|
+
Classifier: Programming Language :: Python :: 3.8
|
|
37
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
38
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
39
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
40
|
+
Requires-Python: >=3.6
|
|
41
|
+
Description-Content-Type: text/x-rst
|
|
@@ -1,24 +1,39 @@
|
|
|
1
1
|
from setuptools import setup, find_packages
|
|
2
2
|
|
|
3
|
+
def get_version(rel_path: str) -> str:
|
|
4
|
+
with open(rel_path) as fp:
|
|
5
|
+
lines = fp.readlines()
|
|
6
|
+
for line in lines:
|
|
7
|
+
if line.startswith("__version__"):
|
|
8
|
+
delim = '"' if '"' in line else "'"
|
|
9
|
+
return line.split(delim)[1]
|
|
10
|
+
raise RuntimeError("Unable to find version string.")
|
|
11
|
+
|
|
3
12
|
setup(
|
|
4
13
|
name='bandplot',
|
|
5
|
-
version=
|
|
14
|
+
version=get_version("bandplot/__init__.py"),
|
|
6
15
|
author='kan',
|
|
7
16
|
author_email='luokan@hrbeu.edu.cn',
|
|
8
17
|
python_requires=">=3.6",
|
|
9
18
|
license='MIT',
|
|
10
19
|
license_files=('LICENSE.txt',),
|
|
11
20
|
platforms=['Unix', 'Windows'],
|
|
12
|
-
keywords='band structure plot',
|
|
21
|
+
keywords='VASP band structure plot',
|
|
13
22
|
description='bandplot: band structure plot from vaspkit result.',
|
|
23
|
+
long_description=open('README.rst').read(),
|
|
24
|
+
long_description_content_type='text/x-rst',
|
|
14
25
|
url='https://github.com/lkccrr/bandplot',
|
|
15
26
|
classifiers=[
|
|
16
27
|
'License :: OSI Approved :: MIT License',
|
|
28
|
+
"Programming Language :: Python",
|
|
17
29
|
'Programming Language :: Python :: 3',
|
|
30
|
+
"Programming Language :: Python :: 3 :: Only",
|
|
18
31
|
'Programming Language :: Python :: 3.6',
|
|
19
32
|
'Programming Language :: Python :: 3.7',
|
|
20
33
|
'Programming Language :: Python :: 3.8',
|
|
21
|
-
'Programming Language :: Python :: 3.9'
|
|
34
|
+
'Programming Language :: Python :: 3.9',
|
|
35
|
+
"Programming Language :: Python :: 3.10",
|
|
36
|
+
"Programming Language :: Python :: 3.11"
|
|
22
37
|
],
|
|
23
38
|
install_requires=[
|
|
24
39
|
'numpy>=1.22.0',
|
bandplot-0.1.0.1/PKG-INFO
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 1.2
|
|
2
|
-
Name: bandplot
|
|
3
|
-
Version: 0.1.0.1
|
|
4
|
-
Summary: bandplot: band structure plot from vaspkit result.
|
|
5
|
-
Home-page: https://github.com/lkccrr/bandplot
|
|
6
|
-
Author: kan
|
|
7
|
-
Author-email: luokan@hrbeu.edu.cn
|
|
8
|
-
License: MIT
|
|
9
|
-
Description: UNKNOWN
|
|
10
|
-
Keywords: band structure plot
|
|
11
|
-
Platform: Unix
|
|
12
|
-
Platform: Windows
|
|
13
|
-
Classifier: License :: OSI Approved :: MIT License
|
|
14
|
-
Classifier: Programming Language :: Python :: 3
|
|
15
|
-
Classifier: Programming Language :: Python :: 3.6
|
|
16
|
-
Classifier: Programming Language :: Python :: 3.7
|
|
17
|
-
Classifier: Programming Language :: Python :: 3.8
|
|
18
|
-
Classifier: Programming Language :: Python :: 3.9
|
|
19
|
-
Requires-Python: >=3.6
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 1.2
|
|
2
|
-
Name: bandplot
|
|
3
|
-
Version: 0.1.0.1
|
|
4
|
-
Summary: bandplot: band structure plot from vaspkit result.
|
|
5
|
-
Home-page: https://github.com/lkccrr/bandplot
|
|
6
|
-
Author: kan
|
|
7
|
-
Author-email: luokan@hrbeu.edu.cn
|
|
8
|
-
License: MIT
|
|
9
|
-
Description: UNKNOWN
|
|
10
|
-
Keywords: band structure plot
|
|
11
|
-
Platform: Unix
|
|
12
|
-
Platform: Windows
|
|
13
|
-
Classifier: License :: OSI Approved :: MIT License
|
|
14
|
-
Classifier: Programming Language :: Python :: 3
|
|
15
|
-
Classifier: Programming Language :: Python :: 3.6
|
|
16
|
-
Classifier: Programming Language :: Python :: 3.7
|
|
17
|
-
Classifier: Programming Language :: Python :: 3.8
|
|
18
|
-
Classifier: Programming Language :: Python :: 3.9
|
|
19
|
-
Requires-Python: >=3.6
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|