Skip to content

Commit

Permalink
Merge branch 'main' into fix
Browse files Browse the repository at this point in the history
  • Loading branch information
gipert committed Dec 21, 2023
2 parents eae50a6 + 2b41a77 commit 93703c5
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 4 deletions.
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/*"
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,10 @@ jobs:
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
30 changes: 30 additions & 0 deletions docs/source/kitchen-sink.rst
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,36 @@ When did physics run 3 of LEGEND-200 period 4 start?
datetime.datetime(2023, 5, 1, 20, 59, 51)


What is the current amount of exposure of HPGes usable for analysis?
--------------------------------------------------------------------------------------

.. code-block:: python
:linenos:
exposure = 0
for period, runs in lmeta.dataprod.config.analysis_runs.items():
for run in runs:
if "phy" not in lmeta.dataprod.runinfo[period][run]:
continue
runinfo = lmeta.dataprod.runinfo[period][run].phy
chmap = lmeta.channelmap(runinfo.start_key).map("system", unique=False).geds
for _, gedet in chmap.items():
if gedet.analysis.usability not in ("off", "ac"):
exposure += (
gedet.production.mass_in_g
/ 1000
* runinfo.livetime_in_s
/ 60
/ 60
/ 24
/ 365
)
print(exposure, "kg yr")
What is the exposure of each single HPGe usable for analysis over a selection of runs?
--------------------------------------------------------------------------------------

Expand Down

0 comments on commit 93703c5

Please sign in to comment.