Skip to content

Commit

Permalink
proper motion plotting bugfix.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mirek Brandt committed Apr 29, 2022
1 parent 8e51a3f commit 28a3373
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
1.1.2 (2022-04-28)
------------------
- Bugfix for plotting proper motions. When the internals changed to mas/yr with 1.1.1, the plotting
was still done in units of mas/day.

1.1.1 (2022-04-21)
------------------
- Added support for the Java Tool IAD (colloquially called hip21).
Expand Down
2 changes: 1 addition & 1 deletion orvara/orbit.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -558,7 +558,7 @@ cdef class Model:
for i in range(self.nAst):
dRA_dt[i] = B * ((- self.sinEA[i]) * (2*pi/par.per) / (1 - par.ecc * self.cosEA[i])) + G * (sqrt(1 - par.ecc**2) * (self.cosEA[i]) * (2*pi/par.per) / (1 - par.ecc * self.cosEA[i]))
dDec_dt[i] = A * ((- self.sinEA[i]) * (2*pi/par.per) / (1 - par.ecc * self.cosEA[i])) + F * (sqrt(1 - par.ecc**2) * (self.cosEA[i]) * (2*pi/par.per) / (1 - par.ecc * self.cosEA[i]))
return dRA_dt, dDec_dt
return dRA_dt*365.25, dDec_dt*365.25 # convert to mas/yr

def free(self):
PyMem_Free(self.dRA_H1)
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

setup(name='orvara',
ext_modules=cythonize(modules),
version='1.1.1',
version='1.1.2',
python_requires='>=3.5',
package_dir={'orvara': 'orvara'},
install_requires=['numpy>=1.13', 'htof>=1.1.0', 'emcee', 'ptemcee',
Expand Down

0 comments on commit 28a3373

Please sign in to comment.