Skip to content

Commit cb47661

Browse files
authored
Merge pull request #167 from 1041176461/develop
fix dos plotting bug in plot-tools and delete `nk_in<10000` assertion in ABACUS
2 parents 3f71d01 + c7745ba commit cb47661

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

source/module_orbital/ORB_atomic_lm.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ void Numerical_Orbital_Lm::copy_parameter(
178178
// assert(r_radial_in[nr-1]<50); // Peize Lin delete 2017-08-18
179179
this->rcut = r_radial_in[nr-1];
180180
assert(nk_in>1);
181-
assert(nk_in<10000);
181+
//assert(nk_in<10000); // Jiyy delete 2022-07-18
182182
this->nk = nk_in;
183183
assert(nk%2!=0);
184184
assert(dk_in>0);

tools/plot-tools/abacus_plot/dos.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ def _parial_plot(self,
391391
Returns:
392392
DOSPlot object: for manually plotting picture with dosplot.ax
393393
"""
394-
if not isinstance(ax, list):
394+
if isinstance(ax, axes.Axes):
395395
ax = [ax]
396396

397397
dos, totnum = parse_projected_data(self.orbitals, species, keyname)

0 commit comments

Comments
 (0)