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

Merged in main to refactor, fixed merge conflicts #563

Merged
merged 229 commits into from
Mar 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
229 commits
Select commit Hold shift + click to select a range
ae20ef5
initial commit
MoritzNeuberger Oct 30, 2023
8a32503
Merge branch 'main' of https://github.com/legend-exp/pygama into issu…
MoritzNeuberger Oct 30, 2023
5328db6
added more possible length combinations for getting parameters
ggmarshall Sep 29, 2023
fc8b129
updated for changes to calibrations
ggmarshall Sep 29, 2023
56136ff
rewrote fitting to fit in stages dropping tail if unnecessary with pr…
ggmarshall Sep 29, 2023
25ce6a1
changes for new cal fitting, added high stats fitting for super calib…
ggmarshall Sep 29, 2023
011838a
rewrite of aoe routines, better handling of guesses, improved clarity…
ggmarshall Sep 29, 2023
dfca8a0
split loading routine into own file as well as function to handle fai…
ggmarshall Sep 29, 2023
4c55f01
bugfix on selection when nan values from fit
ggmarshall Sep 30, 2023
4dc8272
added ability to change tail weighting and changed binning on high st…
ggmarshall Sep 30, 2023
0c6ddbe
bugfix for partitiona ecal
ggmarshall Oct 3, 2023
64a45a1
fixed pars to params to eres fit
ggmarshall Oct 3, 2023
a71479d
partition ecal naming fix
ggmarshall Oct 3, 2023
9cd6853
updated units in fwhm to convention
ggmarshall Oct 9, 2023
5a623db
corrected units to _in_keV
ggmarshall Oct 12, 2023
193fac5
moved aoe_calibration function to dataflow
ggmarshall Oct 31, 2023
a7ceeab
moved top level funcs to dataflow added pulser field to plot arguments
ggmarshall Oct 31, 2023
1183817
added option to pass pulser mask to event selection if not calculate …
ggmarshall Oct 31, 2023
91e7b60
added pulser mask to load data, modified to have the data loading ext…
ggmarshall Oct 31, 2023
d3753ae
switched fit escale and ecal to iminuit and add errors as outputs
ggmarshall Oct 31, 2023
f6fea9e
removed tag_pulser and cut import as had circular dependencies, renam…
ggmarshall Oct 31, 2023
54af535
added default arguments, changed timestamp to run_timestamp to differ…
ggmarshall Oct 31, 2023
9783990
cleaned up imports, removing * imports and removing unnecessary argum…
ggmarshall Oct 31, 2023
894e60b
bugfix for tcm pulser where channel was incorrectly hardcoded
ggmarshall Nov 2, 2023
29cce25
Merge pull request #514 from ggmarshall/main
gipert Nov 2, 2023
62f8d3b
Pre-compute `col_tiers` in `DataLoader.build_entry_list()` for speedu…
jasondet Nov 3, 2023
e96bef5
Increase legend-pydataobj lower version bound
gipert Nov 6, 2023
7467d98
Merge pull request #524 from legend-exp/lgdo
gipert Nov 6, 2023
15fae98
Added routines for calibrating LQ parameter
erin717 Nov 7, 2023
249658c
style: pre-commit fixes
pre-commit-ci[bot] Nov 7, 2023
7b1c040
Fix spelling errors
erin717 Nov 7, 2023
453e4ab
[evt] bugfix: tcm.array_id must have an integer dtype
gipert Nov 8, 2023
d273965
[evt] [tests] add some basic build_tcm tests
gipert Nov 8, 2023
9d21d37
[evt] array_idx must be made of integers too
gipert Nov 8, 2023
9432759
Merge pull request #526 from legend-exp/tcm
gipert Nov 8, 2023
fd7d535
added pargen routine for filter optimization based on fft data
valerioda Nov 17, 2023
4cc4f0c
added extended_gauss_pdf
Nov 17, 2023
d211bc0
minor change
valerioda Nov 17, 2023
ab48f47
changes to loading for trimming
ggmarshall Nov 17, 2023
25c329e
basic cuts and function for fft calculation
valerioda Nov 18, 2023
2807bb5
style: pre-commit fixes
pre-commit-ci[bot] Nov 20, 2023
f49ec8c
using fft processor to calculate power spectral density of baselines …
valerioda Nov 27, 2023
d2ad7d2
routine to create dplms dictionary for Ge processing
valerioda Nov 28, 2023
7cef60f
style: pre-commit fixes
pre-commit-ci[bot] Nov 28, 2023
1192f17
removed dependency on nopt routine
valerioda Nov 28, 2023
e71d0db
loading full raw table
valerioda Nov 28, 2023
f1f3e23
loading full raw table
valerioda Nov 28, 2023
32f843c
smale change on loading data
valerioda Nov 28, 2023
401b91e
raw table passed to the routine, loading moved out
valerioda Nov 28, 2023
e70d1d8
moved load data out of pargen routine
valerioda Nov 28, 2023
cf1e1ab
small changes
valerioda Nov 28, 2023
4771a8b
removed wf_field dependency
valerioda Nov 29, 2023
4f208ba
addded ability to fix ecal pars
ggmarshall Nov 29, 2023
0e1c968
changes to high_stats_fitting to add calibration par tuning
ggmarshall Nov 29, 2023
ffe3a76
upped limit on number of events in peak for inclusion in calibration
ggmarshall Nov 29, 2023
5437be5
bugfixes
ggmarshall Nov 29, 2023
3ecd027
Bump pypa/gh-action-pypi-publish from 1.8.10 to 1.8.11
dependabot[bot] Dec 1, 2023
030211b
Merge pull request #534 from legend-exp/dependabot/github_actions/pyp…
gipert Dec 1, 2023
4bada36
bugfix for loading
ggmarshall Dec 3, 2023
41acd59
moved dt param update out of aoe to workflow
ggmarshall Dec 3, 2023
b1f512b
added ecal tuning for high stats fitting, fixes for plots to add erro…
ggmarshall Dec 3, 2023
6119635
Merge branch 'main' of https://github.com/ggmarshall/pygama
ggmarshall Dec 3, 2023
b6f9576
style: pre-commit fixes
pre-commit-ci[bot] Dec 3, 2023
1486869
moved cuts to dataflow script
valerioda Dec 4, 2023
4d05951
Merge pull request #528 from valerioda/enc_optimization
jasondet Dec 4, 2023
e192c10
Merge pull request #529 from ggmarshall/main
jasondet Dec 4, 2023
3dec296
Merge branch 'legend-exp:main' into dplms-ge-processing
valerioda Dec 5, 2023
d339aa8
changed 'timestamps' to 'run_timestamps'
erin717 Dec 5, 2023
de891df
Removed height_ratios from cut_fit plot
erin717 Dec 5, 2023
ad1be19
Merge pull request #525 from erin717/main
jasondet Dec 5, 2023
daa915f
Add support for bit compounds definitions in `build_hit()` config fil…
rosannadeckert Dec 5, 2023
41e6f61
Update setup.cfg
dcschaper Dec 8, 2023
616aa07
Merge pull request #536 from dcschaper/main
gipert Dec 8, 2023
d2680d8
[ci] bump actions/checkout version
gipert Dec 8, 2023
7843535
[ci] remove ignore section in dependabot.yml
gipert Dec 8, 2023
668f371
Bump actions/checkout from 3 to 4
dependabot[bot] Dec 8, 2023
1bc14cf
Bump actions/setup-python from 2 to 5
dependabot[bot] Dec 8, 2023
49b8214
Merge pull request #538 from legend-exp/dependabot/github_actions/act…
gipert Dec 8, 2023
254b82f
Merge pull request #537 from legend-exp/dependabot/github_actions/act…
gipert Dec 8, 2023
f54ee05
[docs] update developer's guide
gipert Dec 8, 2023
6f0b430
Update README.md
gipert Dec 8, 2023
73395e4
Bump actions/upload-artifact from 3 to 4
dependabot[bot] Jan 1, 2024
38c64ef
Bump actions/download-artifact from 3 to 4
dependabot[bot] Jan 1, 2024
95f5b1e
chore: update pre-commit hooks
pre-commit-ci[bot] Jan 1, 2024
2361ba0
Merge pull request #539 from gipert/docs
gipert Jan 1, 2024
b743340
Merge pull request #540 from legend-exp/dependabot/github_actions/act…
gipert Jan 1, 2024
d0625d7
Merge pull request #541 from legend-exp/dependabot/github_actions/act…
gipert Jan 1, 2024
1818266
pre-commit fixes
gipert Jan 1, 2024
f744f58
Merge branch 'main' into pre-commit-ci-update-config
gipert Jan 1, 2024
10798dc
Merge pull request #542 from legend-exp/pre-commit-ci-update-config
gipert Jan 1, 2024
609917a
Merge branch 'main' into issue_3_lgdo
gipert Jan 1, 2024
85900f7
Update to latest pydataobj alpha release
gipert Jan 1, 2024
0541a6b
Update dspeed test configs and bump requirements in setup.cfg
gipert Jan 2, 2024
cd23607
Merge branch 'main' into issue_3_lgdo
gipert Jan 2, 2024
646cf1a
[ci] fix pytest call in main GH workflow
gipert Jan 2, 2024
0adfdc2
Merge pull request #522 from MoritzNeuberger/issue_3_lgdo
gipert Jan 2, 2024
a1a48fd
[docs] add Intersphinx mappings for LEGEND packages
gipert Jan 10, 2024
9d1dd2c
[hit] Update build_hit() to support latest Table.eval()
gipert Jan 10, 2024
33a7c9b
[hit] test HDF5 LGDO settings too
gipert Jan 11, 2024
cc3b426
[setup] update LEGEND packages version bounds
gipert Jan 11, 2024
dc72406
Merge pull request #543 from legend-exp/build-hit
gipert Jan 11, 2024
44bf684
Merge branch 'legend-exp:main' into dplms-ge-processing
valerioda Jan 12, 2024
f249cdb
update the LH5 file writes/reads to match the new LH5Store syntax acc…
valerioda Jan 12, 2024
c6b09b5
[hit] allow for randomly ordered build_hit operations in config dict
gipert Jan 12, 2024
ae83f53
Merge pull request #544 from legend-exp/build-hit
gipert Jan 12, 2024
8277439
Do not ignore DeprecationWarnings in pytest!
gipert Jan 12, 2024
ff123c0
Add pygama logo to documentation and README (#547)
gipert Jan 12, 2024
fd04ff8
Another round of updates to latest legend-pydataobj
gipert Jan 15, 2024
a404ab0
Merge pull request #546 from legend-exp/lgdo-fixes
gipert Jan 15, 2024
8a3941c
Merge branch 'legend-exp:main' into dplms-ge-processing
valerioda Jan 15, 2024
f186932
modification for dsp processing
valerioda Jan 16, 2024
bffd00f
revert modification on ene_opt
valerioda Jan 16, 2024
a04860c
Merge pull request #533 from valerioda/dplms-ge-processing
gipert Jan 16, 2024
5b21feb
change load data
valerioda Jan 16, 2024
263052f
Merge pull request #549 from valerioda/pargen_utils
gipert Jan 17, 2024
cb2c4d8
error parameter deprecation in pandas 2.2 to_numeric function
patgo25 Jan 23, 2024
bc183a5
add pyarrow dependency required by pandas 2.2
patgo25 Jan 23, 2024
7eacdd8
Merge pull request #550 from patgo25/fix_pandas_future_warnings
gipert Jan 23, 2024
a4ea61a
first idea for evt tier
patgo25 Sep 28, 2023
1a966de
3x speedup and added LAr classifier module
patgo25 Sep 29, 2023
4d78230
small changes and additional lar modules
patgo25 Sep 29, 2023
90d3516
Add TCM event building
patgo25 Oct 9, 2023
21cfba1
adapted spm module to tcm based event building
patgo25 Oct 9, 2023
7ff9151
add lh5 group parameter
patgo25 Oct 11, 2023
099baeb
ignoring useless numpy warnings in sipm module
patgo25 Oct 11, 2023
598e33b
relocated modes into own functions
patgo25 Oct 25, 2023
ad8f2f8
add vov output option
patgo25 Oct 27, 2023
a301e37
Add tests
patgo25 Oct 28, 2023
00d8930
automatically load legendmeta on meta keyword in config
patgo25 Oct 28, 2023
648cb8f
parametrized dsp and hit lh5 root group
patgo25 Oct 28, 2023
086ddc7
generalized first and last sorter
patgo25 Oct 28, 2023
ad9c74e
allow mix of VoV and array evaluation at evt level
patgo25 Oct 29, 2023
db0495a
add event skimming function
patgo25 Oct 29, 2023
6e4264a
allow VoV t0 in spm module
patgo25 Oct 30, 2023
f700e34
implemented suggestions of luigi: retrieve ids in seperate config blo…
patgo25 Nov 28, 2023
5821aaf
Moved channel obtaining by meta data to its own module
patgo25 Nov 28, 2023
8e2bab1
many things
patgo25 Nov 29, 2023
d069968
add sorter to vector evaluation
patgo25 Dec 1, 2023
2247ccb
change aggregation mode vectorize to gather
patgo25 Dec 1, 2023
8ac2ebd
renaming of legend meta module
patgo25 Dec 1, 2023
b6ff699
Add skm tier
patgo25 Dec 2, 2023
985b35b
generalized legend meta module
patgo25 Dec 6, 2023
ceac4db
small changes
patgo25 Dec 6, 2023
b8e8717
add outputs field in configuration
patgo25 Dec 29, 2023
c70ec82
LH5Store function renaming fixes
patgo25 Jan 2, 2024
c636d75
explicit numpy import
patgo25 Jan 2, 2024
218330a
[ci] disable tqdm, should fix the random MacOS CI failures
gipert Jan 4, 2024
4a73c93
Update to latest pydataobj version
gipert Jan 11, 2024
a0cda34
Bug fix in build_evt tests
gipert Jan 11, 2024
ebdcd9c
Docstring cosmetics
gipert Jan 11, 2024
b4a422b
Type hints cosmetics
gipert Jan 11, 2024
c4184f8
Replace another deprecated call to load_nda
gipert Jan 11, 2024
ad906ff
Rename evt.modules.legend.legend_meta to evt.modules.legend.metadata
gipert Jan 11, 2024
7fd3a93
keep evt tier in memory instead of io after each operation
patgo25 Jan 15, 2024
17e0fb2
fix deprecated syntax
patgo25 Jan 15, 2024
67a3493
add awkward evaluation of VoVs
patgo25 Jan 15, 2024
333e902
allow for tcm index aggeregation and LAr pulse index
patgo25 Jan 16, 2024
bad7d46
small bug fixes
patgo25 Jan 16, 2024
983663b
a bit of verbosity
patgo25 Jan 16, 2024
e5bf024
spm module enhancement
patgo25 Jan 16, 2024
ccf7309
skm tier refactor and cleanup works
patgo25 Jan 17, 2024
f262b02
skm tier feature addition
patgo25 Jan 17, 2024
c087649
added option to keep at index
patgo25 Jan 17, 2024
7af7e16
Spm module awkward refactor
patgo25 Jan 18, 2024
d359769
add possibility to add atributes to evt LGDO
patgo25 Jan 18, 2024
c332447
removed explicit typing in a spm module function to be compatible wit…
patgo25 Jan 18, 2024
978836e
routine to create dplms dictionary for Ge processing
valerioda Nov 28, 2023
ff5419a
removed dependency on nopt routine
valerioda Nov 28, 2023
e800f39
loading full raw table
valerioda Nov 28, 2023
ffa4617
smale change on loading data
valerioda Nov 28, 2023
e4f7d68
moved load data out of pargen routine
valerioda Nov 28, 2023
8811839
small changes
valerioda Nov 28, 2023
d2b162d
update the LH5 file writes/reads to match the new LH5Store syntax acc…
valerioda Jan 12, 2024
2aa52e2
modification for dsp processing
valerioda Jan 16, 2024
e255e1e
revert modification on ene_opt
valerioda Jan 16, 2024
ce69014
change load data
valerioda Jan 16, 2024
5523ac7
added lh5 output format for skm tier
patgo25 Jan 19, 2024
b6bd4e6
full sparse mode compatibility
patgo25 Jan 19, 2024
b4672ee
Friday evening changes
patgo25 Jan 19, 2024
b5240f4
allow passing of env vars in legend meta module
patgo25 Jan 22, 2024
a7856e5
add pyarrow dependence
patgo25 Jan 23, 2024
ccc1b71
error parameter deprecation in pandas 2.2 to_numeric function
patgo25 Jan 23, 2024
56ec1d4
removed other output format options than lh5 from build_skm
patgo25 Jan 23, 2024
a8c8393
spm module cleanup
patgo25 Jan 23, 2024
18df7b9
making channel table names agnostic
patgo25 Jan 23, 2024
5138711
handle divide by 0 warnings correctly
patgo25 Jan 24, 2024
8fcd1fc
become agnostic to group nameing
patgo25 Jan 24, 2024
eaa6cb4
split build_evt into sub modules
patgo25 Jan 24, 2024
2c5b9b4
agnostify also skm tier
patgo25 Jan 26, 2024
013dc04
updated etc classifier
patgo25 Jan 30, 2024
78134ca
Docstring cosmetics
gipert Jan 30, 2024
724655c
Merge pull request #519 from patgo25/evt_tier
gipert Jan 30, 2024
79d47bd
Fix for aggregators in `evt` to index output with `evt_idx` instead o…
ggmarshall Jan 31, 2024
1e3f3d7
Bump codecov/codecov-action from 3 to 4
dependabot[bot] Feb 1, 2024
3738fc1
change print to log
ggmarshall Feb 1, 2024
abbe686
fix table import for new version
ggmarshall Feb 1, 2024
5a0df3e
change load_dfs to new read and suppress convergance warnings
ggmarshall Feb 1, 2024
10e403c
change load_dfs to new read and change plotting to no longer give war…
ggmarshall Feb 1, 2024
a3f8a1c
fix tcm read for new lgdo
ggmarshall Feb 1, 2024
2dee12b
style: pre-commit fixes
pre-commit-ci[bot] Feb 1, 2024
a0a4400
Merge pull request #553 from ggmarshall/main
gipert Feb 1, 2024
967dd4c
Merge pull request #552 from legend-exp/dependabot/github_actions/cod…
gipert Feb 1, 2024
ec8dd3d
bugfix for load_data to eval all fields in hit dict
ggmarshall Feb 2, 2024
5f90e40
specify dtype when init lh5 objects
ggmarshall Feb 2, 2024
e6129af
support subtables
ggmarshall Feb 2, 2024
96a07cc
style: pre-commit fixes
pre-commit-ci[bot] Feb 2, 2024
0b569e9
change more prints to log
ggmarshall Feb 2, 2024
3399d20
Merge pull request #554 from ggmarshall/main
gipert Feb 2, 2024
70d6ecd
bugfix for load_data put run timestamp in later
ggmarshall Feb 3, 2024
4155a0c
style: pre-commit fixes
pre-commit-ci[bot] Feb 3, 2024
77cc5ee
Merge pull request #555 from ggmarshall/main
jasondet Feb 3, 2024
2c9f411
Allow build_evt and build_skm to just return the output Table
gipert Feb 9, 2024
e94c956
Fix tests
gipert Feb 9, 2024
74f857f
[docs] remove broken iminuit intersphinx_mapping
gipert Feb 9, 2024
0432e50
[ci] try increasing tqdm silence period
gipert Feb 9, 2024
e6cf95c
Merge pull request #557 from legend-exp/dev
gipert Feb 9, 2024
a6d5aac
Bug fix: `evt.modules.spm.cast_trigger` where Awkward arrays not repl…
ggmarshall Feb 19, 2024
e5f02b0
Bump lgdo version and ignore Pandas/Pyarrow deprecation warning
gipert Feb 19, 2024
61c4695
Merge pull request #560 from legend-exp/dev
gipert Feb 19, 2024
69d89b0
Add CITATION.cff (#556)
gipert Feb 20, 2024
a008520
Update citation-related docs
gipert Feb 28, 2024
db324ff
[ci] update workflow files
gipert Feb 28, 2024
3dccd97
Update subpackage descriptions to silence wheel checking failure in CI
gipert Feb 28, 2024
d7d3c81
[setup] transition to pure pyproject.toml
gipert Feb 28, 2024
0a756f2
Merge pull request #561 from legend-exp/cit
gipert Feb 28, 2024
ae3752a
[setup] bump LEGEND package versions
gipert Mar 1, 2024
7f5371b
merged main into refactor
SamuelBorden Mar 7, 2024
ca7e5b5
restored pargen
SamuelBorden Mar 7, 2024
2da52fc
added boost-histogram to dependencies
SamuelBorden Mar 7, 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
2 changes: 0 additions & 2 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,3 @@ updates:
directory: "/"
schedule:
interval: "monthly"
ignore:
- dependency-name: "actions/*"
Binary file added .github/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
49 changes: 27 additions & 22 deletions .github/workflows/distribution.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,42 +2,47 @@ name: distribute

on:
workflow_dispatch:
pull_request:
push:
tags: "v*"
branches:
- main
release:
types:
- published

jobs:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

env:
FORCE_COLOR: 3

jobs:
dist:
name: Distribution build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Build SDist and wheel
run: pipx run build

- uses: actions/upload-artifact@v3
with:
path: dist/*
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Check metadata
run: pipx run twine check dist/*
- uses: hynek/build-and-inspect-python-package@v2

publish:
needs: [dist]
name: Publish to PyPI
environment: pypi
permissions:
id-token: write
runs-on: ubuntu-latest
if: github.event_name == 'release' && github.event.action == 'published'

steps:
- uses: actions/download-artifact@v3
with:
name: artifact
path: dist

- uses: pypa/[email protected]
with:
password: ${{ secrets.pypi_password }}
- uses: actions/download-artifact@v4
with:
name: Packages
path: dist

- uses: pypa/gh-action-pypi-publish@release/v1
if: github.event_name == 'release' && github.event.action == 'published'
26 changes: 15 additions & 11 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,21 @@
name: pygama

on:
workflow_dispatch:
pull_request:
push:
branches:
- main
- 'releases/**'
pull_request:
release:
- "releases/**"

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

env:
FORCE_COLOR: 3
TQDM_MININTERVAL: 100

jobs:

build-and-test:
Expand All @@ -24,9 +28,9 @@ jobs:
os: [ubuntu-latest, macOS-latest]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Get dependencies and install the package
Expand All @@ -35,16 +39,16 @@ jobs:
python -m pip install --upgrade .[test]
- name: Run unit tests
run: |
pytest
python -m pytest
test-coverage:
name: Calculate and upload test coverage
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
fetch-depth: 2
- uses: actions/setup-python@v2
- uses: actions/setup-python@v5
with:
python-version: '3.10'

Expand All @@ -54,7 +58,7 @@ jobs:
python -m pip install --upgrade .[test]
python -m pytest --cov=pygama --cov-report=xml
- name: Upload Coverage to codecov.io
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: false
Expand All @@ -63,10 +67,10 @@ jobs:
name: Build documentation
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-python@v2
- uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Setup build environment
Expand Down
21 changes: 12 additions & 9 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ ci:
exclude: ^(attic|tutorials|src/pygama/math|src/pygama/flow/datagroup.py)
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: "v4.4.0"
rev: "v4.5.0"
hooks:
- id: check-added-large-files
- id: check-case-conflict
Expand All @@ -26,35 +26,35 @@ repos:
- id: trailing-whitespace

- repo: https://github.com/asottile/setup-cfg-fmt
rev: "v2.4.0"
rev: "v2.5.0"
hooks:
- id: setup-cfg-fmt

- repo: https://github.com/PyCQA/isort
rev: "5.12.0"
rev: "5.13.2"
hooks:
- id: isort

- repo: https://github.com/asottile/pyupgrade
rev: "v3.13.0"
rev: "v3.15.0"
hooks:
- id: pyupgrade
args: ["--py38-plus"]

- repo: https://github.com/psf/black
rev: "23.9.1"
rev: "23.12.1"
hooks:
- id: black-jupyter

- repo: https://github.com/pre-commit/mirrors-mypy
rev: "v1.5.1"
rev: "v1.8.0"
hooks:
- id: mypy
files: src
stages: [manual]

- repo: https://github.com/hadialqattan/pycln
rev: "v2.2.2"
rev: "v2.4.0"
hooks:
- id: pycln
exclude: ^src/pygama/pargen
Expand All @@ -70,6 +70,7 @@ repos:
flake8-print,
pep8-naming
]
args: ["--extend-ignore", "E203,E501"]

- repo: https://github.com/kynan/nbstripout
rev: "0.6.1"
Expand All @@ -85,9 +86,11 @@ repos:
stages: [manual]

- repo: https://github.com/codespell-project/codespell
rev: "v2.2.5"
rev: "v2.2.6"
hooks:
- id: codespell
additional_dependencies:
- tomli

- repo: https://github.com/shellcheck-py/shellcheck-py
rev: "v0.9.0.6"
Expand All @@ -103,7 +106,7 @@ repos:
- id: rst-inline-touching-normal

- repo: https://github.com/pre-commit/mirrors-prettier
rev: "v3.0.3"
rev: "v4.0.0-alpha.8"
hooks:
- id: prettier
types_or: [json]
58 changes: 58 additions & 0 deletions CITATION.cff
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
cff-version: 1.2.0
title: pygama
doi: https://doi.org/10.5281/zenodo.10614246
date-released: 2024-02-03
url: https://github.com/github-linguist/linguist
message: "If you use this software, please cite it as below."
authors:
- family-names: Agostini
given-names: Matteo
orcid: https://orcid.org/0000-0003-1151-5301
- family-names: Detwiler
given-names: Jason
orcid: https://orcid.org/0000-0002-9050-4610
- family-names: Pertoldi
given-names: Luigi
orcid: https://orcid.org/0000-0002-0467-2571
- family-names: Guinn
given-names: Ian
orcid: https://orcid.org/0000-0002-2424-3272
- family-names: Marshall
given-names: George
orcid: https://orcid.org/0000-0002-5470-5132
- family-names: D'Andrea
given-names: Valerio
orcid: https://orcid.org/0000-0003-2037-4133
- family-names: Krause
given-names: Patrick
orcid: https://orcid.org/0000-0002-9603-7865
- family-names: Song
given-names: Grace
email: [email protected]
- family-names: Engelhardt
given-names: Erin
email: [email protected]
- family-names: Borden
given-names: Sam
orcid: https://orcid.org/0009-0003-2539-4333
- family-names: Deckert
given-names: Rosanna
orcid: https://orcid.org/0009-0006-0431-341X
- family-names: Sweigart
given-names: David
email: [email protected]
- family-names: Zschocke
given-names: Andreas
email: [email protected]
- family-names: Wiseman
given-names: Clint
orcid: https://orcid.org/0000-0002-4232-1326
- family-names: Mathew
given-names: Tim
email: [email protected]
- family-names: Kermaïdic
given-names: Yoann
orcid: https://orcid.org/0000-0001-8007-8016
- family-names: Shanks
given-names: Ben
email: [email protected]
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
<img src=".github/logo.png" alt="pygama logo" align="left" height="150">

# pygama

[![PyPI](https://img.shields.io/pypi/v/pygama?logo=pypi)](https://pypi.org/project/pygama/)
Expand All @@ -10,6 +12,7 @@
[![GitHub pull requests](https://img.shields.io/github/issues-pr/legend-exp/pygama?logo=github)](https://github.com/legend-exp/pygama/pulls)
[![License](https://img.shields.io/github/license/legend-exp/pygama)](https://github.com/legend-exp/pygama/blob/main/LICENSE)
[![Read the Docs](https://img.shields.io/readthedocs/pygama?logo=readthedocs)](https://pygama.readthedocs.io)
[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.10614246.svg)](https://zenodo.org/doi/10.5281/zenodo.10614246)

*pygama* is a Python package for:

Expand All @@ -25,3 +28,15 @@
- generating and selecting high-level event data for further analysis

Check out the [online documentation](https://pygama.readthedocs.io).

If you are using this software, consider
[citing](https://zenodo.org/doi/10.5281/zenodo.10614246)!

## Related repositories

- [legend-exp/legend-pydataobj](https://github.com/legend-exp/legend-pydataobj)
→ LEGEND Python Data Objects
- [legend-exp/legend-daq2lh5](https://github.com/legend-exp/legend-daq2lh5)
→ Convert digitizer data to LEGEND HDF5
- [legend-exp/dspeed](https://github.com/legend-exp/dspeed)
→ Fast Digital Signal Processing for particle detector signals in Python
5 changes: 4 additions & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
"source_directory": "docs/source",
}
html_title = f"{project} {version}"
html_logo = "../../.github/logo.png"

# sphinx-napoleon
# enforce consistent usage of NumPy-style docstrings
Expand All @@ -57,9 +58,11 @@
"scipy": ("https://docs.scipy.org/doc/scipy", None),
"pandas": ("https://pandas.pydata.org/docs", None),
"matplotlib": ("https://matplotlib.org/stable", None),
"iminuit": ("https://iminuit.readthedocs.io/en/stable", None),
"h5py": ("https://docs.h5py.org/en/stable", None),
"pint": ("https://pint.readthedocs.io/en/stable", None),
"lgdo": ("https://legend-pydataobj.readthedocs.io/en/stable", None),
"dspeed": ("https://dspeed.readthedocs.io/en/stable", None),
"daq2lh5": ("https://legend-daq2lh5.readthedocs.io/en/stable", None),
}

suppress_warnings = [
Expand Down
Loading
Loading