Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release/0.1.0 #11

Merged
merged 50 commits into from
Sep 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
d5901b0
made a directory for CI
HajimeKawahara Aug 16, 2024
0741240
added yml for github workflow
HajimeKawahara Aug 16, 2024
9043923
added .gitignore
HajimeKawahara Aug 16, 2024
84aa8d5
added empty unittest
HajimeKawahara Aug 16, 2024
3eed118
added requirement packages in setup.py
HajimeKawahara Aug 16, 2024
acd285a
Merge pull request #1 from kemasuda/reorg_first
kemasuda Aug 17, 2024
9db5f96
unittest for rv and MANIFEST.in, celerite2 in requirement
HajimeKawahara Aug 17, 2024
3406ca4
unittest for rv and MANIFEST.in, celerite2 in requirement
HajimeKawahara Aug 17, 2024
58ea787
adds pandas in requirement
HajimeKawahara Aug 17, 2024
aa64143
getrv unittest
HajimeKawahara Aug 17, 2024
8bf6dbf
adds test_t0_to_tau
HajimeKawahara Aug 17, 2024
7de8c1b
I/O in rv.ipynb changed to use tests module
HajimeKawahara Aug 17, 2024
27fd3b9
jaxopt in requirements
HajimeKawahara Aug 17, 2024
bc7a0a9
init
HajimeKawahara Aug 17, 2024
f8acff2
Update setup.py
kemasuda Aug 17, 2024
01f6b19
Update rv_test.py
kemasuda Aug 17, 2024
6e21536
Update rv_test.py
kemasuda Aug 17, 2024
2f904ea
Merge pull request #3 from kemasuda/add_unittests
kemasuda Aug 17, 2024
049e73d
added mann19*.txt in data/
HajimeKawahara Aug 17, 2024
1444757
wrote them in MANIFEST.in
HajimeKawahara Aug 17, 2024
1def383
added astrometry_test.py
HajimeKawahara Aug 17, 2024
e659b7b
astropy in requirement
HajimeKawahara Aug 17, 2024
679fc5d
read astrometry test data
HajimeKawahara Aug 17, 2024
554e47a
test completed
HajimeKawahara Aug 18, 2024
d62a291
retry
HajimeKawahara Aug 18, 2024
9e2267c
gave up to publish the pytest result due to the secondary rate limit
HajimeKawahara Aug 18, 2024
4d548ae
Merge pull request #5 from kemasuda/unittest_2
kemasuda Aug 18, 2024
2121a56
kic data in MANIFEST.in
HajimeKawahara Aug 20, 2024
656207b
unittest for read_testdata by copilot
HajimeKawahara Aug 20, 2024
b33fbbb
unittest for read koi
HajimeKawahara Aug 20, 2024
ec229d6
error in optimize_transit_params
HajimeKawahara Aug 20, 2024
bc7022b
added jaxopt>=0.8.3 in requirement
HajimeKawahara Aug 22, 2024
d30939b
unittest long and compute_transit tests
HajimeKawahara Aug 22, 2024
680a64f
Merge pull request #7 from kemasuda/jaxopt_requirement
HajimeKawahara Aug 22, 2024
aba620a
Merge branch 'develop' of https://github.com/kemasuda/jkepler into un…
HajimeKawahara Aug 22, 2024
6b4646b
temp
HajimeKawahara Aug 22, 2024
39ad6be
remove np.sum
Aug 26, 2024
fd4a090
flux loss for multiple wavelengths w/o vmap
Aug 26, 2024
3ea9936
add perturbed model
Sep 2, 2024
369d646
remove pykepler
Sep 2, 2024
c4b52af
added transit unit test
HajimeKawahara Sep 4, 2024
2e862f8
added unit test for kepler
HajimeKawahara Sep 4, 2024
75ba950
Update transitfit_test.py
kemasuda Sep 17, 2024
0ca982f
github action v4
HajimeKawahara Sep 17, 2024
57e1de9
Merge pull request #8 from kemasuda/unittest_3
HajimeKawahara Sep 17, 2024
7e0ad3d
adds files for docs
HajimeKawahara Sep 17, 2024
48ff39a
exojax remained...
HajimeKawahara Sep 17, 2024
2d1e241
Update index.rst
kemasuda Sep 25, 2024
8d481e2
Merge pull request #10 from kemasuda/doc
kemasuda Sep 25, 2024
db557f1
version 0.1
Sep 25, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
61 changes: 61 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
name: Run pytest
on:
# Triggers the workflow on push or pull request events but only for the "develop" and "main" branch
push:
branches: [ "develop" , "main"]
pull_request:
branches: [ "develop" , "main"]


jobs:
pytest:
runs-on: ubuntu-latest

steps:
# Checkout repository
- name: Checkout
uses: actions/checkout@v4

# Setup Python
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: '3.10'

# install package
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python setup.py install

# install pytest
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pytest

# pytest -> JUnit xml
- name: PyTest
run: |
python -m pytest tests/unittests --junit-xml results/pytest.xml
continue-on-error: true

# show the results
- name: Upload Unit Test Results
if: ${{ always() }}
uses: actions/upload-artifact@v4
with:
name: Unit Test Results (Python 3.10)
path: results/*.xml

- name: Download Artifacts
if: success() || failure()
uses: actions/download-artifact@v4
with:
path: artifacts

# - name: Publish Unit Test Results
# uses: EnricoMi/publish-unit-test-result-action@v2
# with:
# files: artifacts/**/*.xml

6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
build/
dist/
dust/
*.ipynb_checkpoints/
*.egg-info/
__pycache__
16 changes: 16 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
include src/jkepler/data/tests/v723mon_s12_rv.csv
include src/jkepler/data/tests/mann19_astrometry.txt
include src/jkepler/data/tests/mann19_orbit.txt
include src/jkepler/data/tests/kic11773022_koiinfo.csv
include src/jkepler/data/tests/kic11773022_long_transits.csv

graft tests
graft examples
graft docs

global-exclude *.py[co]

prune documents/_build
prune documents/_static
prune documents/_templates
prune documents/_build/doctrees/index.doctree
20 changes: 20 additions & 0 deletions documents/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Minimal makefile for Sphinx documentation
#

# You can set these variables from the command line, and also
# from the environment for the first two.
SPHINXOPTS ?=
SPHINXBUILD ?= sphinx-build
SOURCEDIR = .
BUILDDIR = _build

# Put it first so that "make" without argument is like "make help".
help:
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

.PHONY: help Makefile

# Catch-all target: route all unknown targets to Sphinx using the new
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
%: Makefile
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
61 changes: 61 additions & 0 deletions documents/conf.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
# Configuration file for the Sphinx documentation builder.
#
# This file only contains a selection of the most common options. For a full
# list see the documentation:
# http://www.sphinx-doc.org/en/master/config

# -- Path setup --------------------------------------------------------------

# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
#
import sphinx_rtd_theme
import os
import sys
sys.path.insert(0, os.path.abspath('~/jkepler'))


# -- Project information -----------------------------------------------------

project = 'jkepler'
copyright = 'jkepler'
author = 'Kento Masuda'

# The full version, including alpha/beta/rc tags
release = '0.0.0'


# -- General configuration ---------------------------------------------------

# Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
extensions = ['sphinx.ext.autodoc', 'sphinx.ext.napoleon', 'sphinxemoji.sphinxemoji',
]

# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']

# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.
# This pattern also affects html_static_path and html_extra_path.
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']


# -- Options for HTML output -------------------------------------------------

# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
#
html_theme = 'sphinx_rtd_theme'
# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = ['_static']
html_logo = '_static/logo.png'

#html_theme_options = {
# 'style_nav_header_background': '#333',
#}
html_css_files = ['header.css']
17 changes: 17 additions & 0 deletions documents/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
.. jkepler documentation master file, created by
sphinx-quickstart on Mon Jan 11 14:38:51 2021.
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.

jkepler
==================================



.. toctree::
:maxdepth: 1
:caption: API:

jkepler/jkepler.rst


6 changes: 3 additions & 3 deletions examples/astrometry.ipynb

Large diffs are not rendered by default.

Loading
Loading