Skip to content

Commit

Permalink
fix a bug causing a small offset between the kinematic and morphologi…
Browse files Browse the repository at this point in the history
…cal centres when phasecent!=[0,0] but vphasecent==[0,0]
  • Loading branch information
r-xue committed Mar 7, 2019
1 parent c2c83c6 commit b03e162
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions KinMS.py
Expand Up @@ -439,8 +439,8 @@ def KinMS(xs,ys,vs,cellSize,dv,beamSize,inc,gasSigma=0,sbProf=[],sbRad=[],velRad
ySize = float(round(ys/cellSize))
vSize = float(round(vs/dv))
cent = [(xSize/2.) + (phaseCen[0] / cellSize),(ySize / 2.) + (phaseCen[1] / cellSize),(vSize / 2.) + (vOffset / dv)]
vPhaseCent = (vPhaseCen-phaseCen) / [cellSize,cellSize]

vPhaseCent = (vPhaseCen) / [cellSize,cellSize]
#If cloudlets not previously specified, generate them
if not len(inClouds):
inClouds = kinms_sampleFromArbDist_oneSided(sbRad,sbProf,nSamps,fixSeed,diskThick=diskThick)
Expand Down

0 comments on commit b03e162

Please sign in to comment.