Skip to content

Commit

Permalink
updating changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
dfm committed Oct 25, 2019
1 parent b955a86 commit bcb794f
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 14 deletions.
16 changes: 8 additions & 8 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
"C_Cpp.intelliSenseEngine": "Default",
"C_Cpp.default.includePath": [
"${workspaceFolder}/exoplanet/theano_ops/lib/vendor/eigen_3.3.3",
"${HOME}/anaconda3/include/**",
"${HOME}/anaconda3/lib/**",
"${HOME}/miniconda3/include/**",
"${HOME}/miniconda3/lib/**",
"${HOME}/anaconda/include/**",
"${HOME}/anaconda/lib/**",
"${HOME}/miniconda/include/**",
"${HOME}/miniconda/lib/**"
// "${HOME}/anaconda3/include/**",
// "${HOME}/anaconda3/lib/**",
// "${HOME}/miniconda3/include/**",
// "${HOME}/miniconda3/lib/**",
// "${HOME}/anaconda/include/**",
// "${HOME}/anaconda/lib/**",
// "${HOME}/miniconda/include/**",
// "${HOME}/miniconda/lib/**"
],
// Python testing
"python.testing.pytestArgs": [
Expand Down
9 changes: 9 additions & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
0.2.2 (2019-10-25)
++++++++++++++++++

- Adds ``TTVOrbit`` tutorial
- Switches tutorials to `lightkurve <https://docs.lightkurve.org>`_ for data access
- Improves packaging and code style features
- Fixes bugs and improves interface to ``TTVOrbit``


0.2.1 (2019-09-26)
++++++++++++++++++

Expand Down
10 changes: 4 additions & 6 deletions paper/figures/kepler_bench.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,7 @@ struct Batman {
};

template <typename Operator>
std::tuple<double, double, double, double> do_benchmark(double ecc,
const int N) {
std::tuple<double, double, double, double> do_benchmark(double ecc, const int N) {
std::vector<double> M(N), E(N);
for (int n = 0; n < N; ++n) {
E[n] = 2 * M_PI * n / (N - 1);
Expand Down Expand Up @@ -147,14 +146,13 @@ std::tuple<double, double, double, double> do_benchmark(double ecc,
std::sort(error.begin(), error.end());
double pct90 = error[(9 * N) / 10];

return std::make_tuple(log10(end - start) - log10(N), log10(max_err),
log10(mean_err), log10(pct90));
return std::make_tuple(log10(end - start) - log10(N), log10(max_err), log10(mean_err),
log10(pct90));
}

PYBIND11_MODULE(kepler_bench, m) {
const int N = 1000000;
m.def("exoplanet", &do_benchmark<Exoplanet>, py::arg("ecc"),
py::arg("N") = N);
m.def("exoplanet", &do_benchmark<Exoplanet>, py::arg("ecc"), py::arg("N") = N);
m.def("radvel", &do_benchmark<Radvel>, py::arg("ecc"), py::arg("N") = N);
m.def("batman", &do_benchmark<Batman>, py::arg("ecc"), py::arg("N") = N);
}

0 comments on commit bcb794f

Please sign in to comment.