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

reboost hpges #23

Draft
wants to merge 90 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
90 commits
Select commit Hold shift + click to select a range
578de78
basic template for hpge post processing
tdixon97 Oct 21, 2024
a6d3d12
style: pre-commit fixes
pre-commit-ci[bot] Oct 21, 2024
05b42e6
pc fixes
tdixon97 Oct 21, 2024
3dfbf23
style improvements
tdixon97 Oct 21, 2024
0bd5d6f
fix merge
tdixon97 Oct 21, 2024
8b1fd87
basic functionality for time-windowing
tdixon97 Oct 22, 2024
223a7d0
detectors file to config
tdixon97 Oct 22, 2024
5ded4c9
[fix] sort by time
tdixon97 Oct 22, 2024
4261348
[wip] adding functions for DL calculations
tdixon97 Oct 24, 2024
2f888fb
[wip] adding functions for DL calc and __init__ for hpge subpackage
tdixon97 Oct 24, 2024
ddea2d5
style: pre-commit fixes
pre-commit-ci[bot] Oct 24, 2024
ca94f10
Update __init__.py
tdixon97 Oct 24, 2024
adb1f6e
style: pre-commit fixes
pre-commit-ci[bot] Oct 24, 2024
534882c
Update src/reboost/hpge/processors.py
tdixon97 Oct 28, 2024
3d5a535
Update src/reboost/hpge/hit.py
tdixon97 Oct 28, 2024
39c587c
style: pre-commit fixes
pre-commit-ci[bot] Oct 28, 2024
78e130a
[wip] starting functionality for DLs
tdixon97 Oct 28, 2024
592bdfc
Merge branch 'main' of github.com:tdixon97/reboost into main
tdixon97 Oct 28, 2024
a2e2599
style: pre-commit fixes
pre-commit-ci[bot] Oct 28, 2024
16550ae
fix some parts of the docs
tdixon97 Oct 28, 2024
4c4f603
style: pre-commit fixes
pre-commit-ci[bot] Oct 28, 2024
f8778cc
generate proccesing chain from config file
tdixon97 Nov 7, 2024
0e7aaf5
bit of clean up / improved docs
tdixon97 Nov 7, 2024
5a9595b
[tests] add test for the windowing
tdixon97 Nov 7, 2024
63ca42b
style: pre-commit fixes
pre-commit-ci[bot] Nov 7, 2024
d65ffad
[tests] adding more tests
tdixon97 Nov 8, 2024
bfe9782
style: pre-commit fixes
pre-commit-ci[bot] Nov 8, 2024
670f5df
[tests] test merging arrays
tdixon97 Nov 8, 2024
4747230
Merge branch 'main' of github.com:tdixon97/reboost into main
tdixon97 Nov 8, 2024
cdc8767
style: pre-commit fixes
pre-commit-ci[bot] Nov 8, 2024
8e8de77
update to be able to read json or yaml
tdixon97 Nov 8, 2024
6cf37d6
fix merge
tdixon97 Nov 8, 2024
3dcc0f6
processor for distance to surface
tdixon97 Nov 10, 2024
0d22b95
[docs] improved documentation
tdixon97 Nov 12, 2024
83be05d
add hpges and pyg4ometry to the dependencies
tdixon97 Nov 12, 2024
a2e8d4a
add pyg4ometry
tdixon97 Nov 12, 2024
58e6f36
[docs] add legendtestdata to deps
tdixon97 Nov 12, 2024
8ec0df6
[tests] test on the whole of build_hit (IO)
tdixon97 Nov 12, 2024
ee048fa
precommit
tdixon97 Nov 12, 2024
410bb22
remove dependency
tdixon97 Nov 12, 2024
a4140bf
[tests] fix the test data
tdixon97 Nov 12, 2024
b615949
add the option to just read n evtid starting at a particular index.
tdixon97 Nov 14, 2024
42390b8
trying to fix tests
tdixon97 Nov 14, 2024
40329f5
style: pre-commit fixes
pre-commit-ci[bot] Nov 14, 2024
432bd70
add awkward to dependencies
tdixon97 Nov 14, 2024
8616562
Merge branch 'main' of github.com:tdixon97/reboost into main
tdixon97 Nov 14, 2024
dea22dd
update main.yaml
tdixon97 Nov 14, 2024
6237681
improving documentation
tdixon97 Nov 14, 2024
1370087
change FileInfo into class (cleaner)
tdixon97 Nov 14, 2024
54663e0
[docs] improve documentation and start working on locals option
tdixon97 Nov 14, 2024
097b9e6
add option to specify local objects in config
tdixon97 Nov 15, 2024
133da5e
ak.min to np.min for 1D array
tdixon97 Nov 15, 2024
9f0a9ba
style: pre-commit fixes
pre-commit-ci[bot] Nov 15, 2024
f075594
style fixes
tdixon97 Nov 15, 2024
9f70f59
Merge branch 'main' of github.com:tdixon97/reboost into main
tdixon97 Nov 15, 2024
cd16454
ak -> np to fix CI failures
tdixon97 Nov 15, 2024
a28d1a4
style: pre-commit fixes
pre-commit-ci[bot] Nov 15, 2024
b9bc3a4
[docs] adding a basic tutorial
tdixon97 Nov 16, 2024
28115f1
Merge branch 'main' of github.com:tdixon97/reboost into main
tdixon97 Nov 16, 2024
50017cc
style: pre-commit fixes
pre-commit-ci[bot] Nov 16, 2024
e301bd7
[docs] fix spelling
tdixon97 Nov 16, 2024
7293579
Merge branch 'main' of github.com:tdixon97/reboost into main
tdixon97 Nov 16, 2024
03e6088
[docs] fix
tdixon97 Nov 16, 2024
90112a2
[docs] remove nbspinx
tdixon97 Nov 16, 2024
e4feb8f
[docs] update conf.p
tdixon97 Nov 16, 2024
66c63fc
Update pyproject.toml
tdixon97 Nov 17, 2024
22c4b78
[docs] fix tutorial
tdixon97 Nov 17, 2024
c2bc963
[docs] fix
tdixon97 Nov 17, 2024
387ac50
[docs] more format fixes
tdixon97 Nov 17, 2024
e78e90e
clean up build hit
tdixon97 Nov 18, 2024
9530b65
first version of building tcm
tdixon97 Nov 18, 2024
78116a4
remove timing debug (cleanup)
tdixon97 Nov 18, 2024
0abd90f
[evt] first version of build_tcm code
tdixon97 Nov 18, 2024
d9509bc
[docs] small fix
tdixon97 Nov 18, 2024
abd9450
pre-commit
tdixon97 Nov 18, 2024
01cc000
[docs] fix build-hit docsring
tdixon97 Nov 19, 2024
f0d13cb
change evtid to _evtid and global_evtid to _global_evtid since its no…
tdixon97 Nov 20, 2024
f594231
additions to documentation
tdixon97 Nov 20, 2024
9509c2a
[docs] switch tutorials from rst to ipynb (easier to mantain)
tdixon97 Nov 20, 2024
df7e6d9
change to notebook for docs
tdixon97 Nov 20, 2024
ae1cea5
[docs] switch back to rst (dont want to run the notebooks)
tdixon97 Nov 20, 2024
ecd90e7
[evt] adding build_tcm functionality
tdixon97 Nov 21, 2024
d6b6d27
[docs] documentation for event tier
tdixon97 Nov 22, 2024
235aefb
[docs] documentation for event tier
tdixon97 Nov 22, 2024
c61ef07
[docs] remove nbsphinx
tdixon97 Nov 22, 2024
2d8c634
[docs] fix
tdixon97 Nov 22, 2024
0a97068
style: pre-commit fixes
pre-commit-ci[bot] Nov 22, 2024
5790828
[docs] ipython --> python
tdixon97 Nov 22, 2024
6383880
Merge branch 'main' of github.com:tdixon97/reboost into main
tdixon97 Nov 22, 2024
b779c4d
[docs] small fixes
tdixon97 Nov 22, 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
4 changes: 4 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ jobs:
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install non-python (homebrew) dependencies
if: ${{ matrix.os == 'macOS-latest' }}
run: |
brew install opencascade cgal gmp mpfr boost
- name: Get dependencies and install reboost
run: |
python -m pip install --upgrade pip wheel setuptools
Expand Down
11 changes: 11 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,17 @@ repos:
additional_dependencies:
- pytest

- repo: https://github.com/kynan/nbstripout
rev: "0.7.1"
hooks:
- id: nbstripout
args:
[
"--drop-empty-cells",
"--extra-keys",
"metadata.kernelspec metadata.language_info",
]

- repo: https://github.com/codespell-project/codespell
rev: "v2.3.0"
hooks:
Expand Down
12 changes: 11 additions & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,13 @@
"myst_parser",
]


source_suffix = {
".rst": "restructuredtext",
".md": "markdown",
}
master_doc = "index"
language = "python"
# language = "python"

# Furo theme
html_theme = "furo"
Expand All @@ -53,8 +54,17 @@
"scipy": ("http://docs.scipy.org/doc/scipy/reference", None),
"pandas": ("https://pandas.pydata.org/docs", None),
"matplotlib": ("http://matplotlib.org/stable", None),
"pygama": ("https://pygama.readthedocs.io/en/stable/", None),
"legendhpges": ("https://legend-pygeom-hpges.readthedocs.io/en/latest/", None),
} # add new intersphinx mappings here


suppress_warnings = [
# "histogram" is defined both in pygama.dsp.processors.histogram.histogram
# and in pygama.math.histogram, leading to a Sphinx cross-referencing
# warning. I don't know how to fix this properly
"ref.python",
]
# sphinx-autodoc
# Include __init__() docstring in class docstring
autoclass_content = "both"
Expand Down
48 changes: 46 additions & 2 deletions docs/source/index.rst
Original file line number Diff line number Diff line change
@@ -1,10 +1,54 @@
Welcome to reboost's documentation!
==========================================

Table of Contents
-----------------
*reboost* is a python package for the post-processing of `remage <https://remage.readthedocs.io/en/stable/>`_ monte-carlo Simulations.

Getting started
---------------

*reboost* can be installed with *pip*:

.. code-block:: console

$ git clone [email protected]:legend-exp/reboost.git
$ cd reboost
$ pip install .

*reboost* is currently divided into two programs:
- *reboost-optical* for processing optical simulations,
- *reboost-hpge* for processing HPGe detector simulations.

Both can be run on the command line with:

.. code-block:: console

$ reboost-optical -h
$ reboost-hpge -h

Next steps
----------

.. toctree::
:maxdepth: 2

User Manual <manual/index>

.. toctree::
:maxdepth: 1

tutorial

.. toctree::
:maxdepth: 1

Package API reference <api/modules>


See also
--------
- `remage <https://remage.readthedocs.io/en/stable/>`_: Modern *Geant4* application for HPGe and LAr experiments,
- `legend-pygeom-hpges <https://legend-pygeom-hpges.readthedocs.io/en/latest/>`_: Package for handling HPGe detector geometry in python,
- `pyg4ometry <https://pyg4ometry.readthedocs.io/en/stable/>`_: Package to create simulation geometry in python,
- `legend-pygeom-optics <https://legend-pygeom-optics.readthedocs.io/en/stable/>`_: Package to handle optical properties in python,
- `legend-pygeom-l200 <https://github.com/legend-exp/legend-pygeom-l200>`_: Implementation of the LEGEND-200 experiment (**private**),
- `pyvertexgen <https://github.com/tdixon97/pyvertexgen/>`_: Generation of vertices for simulations.
Loading
Loading