Skip to content

Commit adefe19

Browse files
committed
change spin RB plot resolution
1 parent 4f9ca85 commit adefe19

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

GSASII/GSASIIlattice.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2973,8 +2973,8 @@ def SHarmcal(SytSym,SHFln,psi,gam):
29732973
if SytSym in ['m3m','m3','43m','432','23'] or 'c' in trm:
29742974
Ksl = CubicSHarm(l,m,psi,gam)
29752975
else:
2976-
p = SHFln[term][2]
2977-
Ksl = SphHarmAng(l,m,p,psi,gam)
2976+
# p = SHFln[term][2]
2977+
Ksl = SphHarmAng(l,m,1.0,psi,gam)
29782978
SHVal += SHFln[term][0]*Ksl
29792979
return SHVal
29802980

GSASII/GSASIIplot.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6714,6 +6714,7 @@ def RenderTextureSphere(x,y,z,radius,ATcolor=None,shape=[20,10],Texture=None,ifF
67146714
SpFade = acolor(Texture)*255
67156715
else:
67166716
SpFade[:,:,:3] = Texture[:,:,nxs]*list(ATcolor)
6717+
SpFade[:,:,3] = 255
67176718
if ifFade:
67186719
SpFade[:,:,3] = 60
67196720
spID = GL.glGenTextures(1)
@@ -7228,7 +7229,7 @@ def Draw(caller='',Fade=[],NPkey=False):
72287229
ifFade = SpnData.get('fadeSh',True)
72297230
useAtColor = SpnData.get('useAtColor',True)
72307231
symAxis = np.array(SpnData.get('symAxis',[0,0,1]))
7231-
Npsi,Ngam = 360,180
7232+
Npsi,Ngam = 90,45
72327233
QA = G2mth.invQ(SpnData['Orient'][0]) #rotate about chosen axis
72337234
QB = G2mth.make2Quat(symAxis,np.array([0,0,1.]))[0] #position obj polar axis
72347235
QP = G2mth.AVdeg2Q(360./Npsi,np.array([0,0,1.])) #this shifts by 1 azimuth pixel

0 commit comments

Comments
 (0)