-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from israelmcmc/PR128
I only checked FullDetectorResponse.py because all the other commits are for synchronize my fork and I am ok with that
- Loading branch information
Showing
124 changed files
with
16,446 additions
and
51,478 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: docs | ||
|
||
on: [push, pull_request, workflow_dispatch] | ||
|
||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
docs: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.11' | ||
- name: Install dependencies | ||
run: | | ||
sudo apt install pandoc | ||
pip install sphinx sphinx_rtd_theme nbsphinx mock | ||
- name: Sphinx build | ||
run: | | ||
make -C docs html | ||
- name: Deploy to GitHub Pages | ||
uses: peaceiris/actions-gh-pages@v3 | ||
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} | ||
with: | ||
publish_branch: gh-pages | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: docs/_build/html | ||
force_orphan: true | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: unit_tests | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
tests: | ||
|
||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: ["3.10"] | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Display Python version | ||
run: python -c "import sys; print(sys.version)" | ||
- name: Install | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install . | ||
- name: Tests | ||
run: | | ||
pip install pytest pytest-cov | ||
pytest tests --junitxml=junit/test-results.xml --cov=cosipy --cov-report=xml --cov-report=html | ||
- name: Codecov | ||
uses: codecov/[email protected] | ||
env: | ||
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -129,4 +129,7 @@ dmypy.json | |
.pyre/ | ||
|
||
# Tempoerary files | ||
*~ | ||
*~ | ||
|
||
# OS | ||
.DS_store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Changelog | ||
|
||
## Version 0.3.0 | ||
|
||
Under development. | ||
|
||
Developers: please keep track of notable changes here. | ||
|
||
- | ||
|
||
## Version 0.2.x | ||
|
||
Version 0.2.0 is the first released version of the "new" cosipy. It was reimplemented from scratch based on the "old" cosipy, now called "[cosipy classic](https://github.com/cositools/mirror-cosipy-classic)". It is the version used for [Data Challenge 2](https://github.com/cositools/cosi-data-challenge-2). Versions 0.2.x have bug fixes for version 0.2.0 but keep backward compatibility and do not add new features. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,13 @@ | ||
# cosipy | ||
The COSI high-level data analysis tools | ||
|
||
## Installation from source | ||
[![unit_tests](https://github.com/cositools/cosipy/actions/workflows/unit_tests.yml/badge.svg?branch=develop)](https://github.com/cositools/cosipy/actions/workflows/unit_tests.yml) | ||
[![codecov](https://codecov.io/gh/cositools/cosipy/branch/develop/graph/badge.svg?token=FQGI2VG4OY)](https://codecov.io/gh/cositools/cosipy) | ||
|
||
Meant for developers. Currently the only option. | ||
The cosipy library is [COSI](https://cosi.ssl.berkeley.edu)'s high-level analysis software. | ||
|
||
1. Clone the repository into your local machine | ||
The main repository is hosted in https://github.com/cositools/cosipy | ||
|
||
``` | ||
git clone [email protected]:cositools/cosipy.git | ||
``` | ||
For the cosipy installation and usage instructions please refer to the main [cosipy documentation](https://cositools.github.io/cosipy/). | ||
|
||
2. Move to the cosipy folder | ||
|
||
``` | ||
cd cosipy | ||
``` | ||
|
||
3. Create a new conda environment. Optional but highly encouranged. | ||
|
||
4. Install it: | ||
|
||
``` | ||
pip install -e . | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# When modifying the this file, please validate the new YAML using | ||
# curl -X POST --data-binary @codecov.yml https://codecov.io/validate | ||
# See | ||
# https://docs.codecov.com/docs/commit-status | ||
# https://docs.codecov.com/docs/codecovyml-reference | ||
|
||
coverage: | ||
status: | ||
project: # How much the overall coverage can decrease | ||
default: | ||
target: auto # Uses coverage of current pull request base or parent commit | ||
threshold: 10% # Leeway, allow it to decrease a little. Will be 0% in the long term | ||
patch: # What percentage of the new lines need to be covered | ||
default: | ||
target: 100% | ||
threshold: 50% # Leeway, allow not fully-covered contributuons. Will be 0% in the long term | ||
|
||
|
||
comment: | ||
hide_project_coverage: false # Show both overall and delta coverage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
__version__ = "0.0.2a1" | ||
__version__ = "0.3.0.dev0" |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.