Skip to content

Commit e5c0635

Browse files
committed
update cf (needs reprocessing)
1 parent ea39ece commit e5c0635

File tree

3 files changed

+35
-15
lines changed

3 files changed

+35
-15
lines changed

hbw/tasks/plotting.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -242,14 +242,14 @@ def run(self):
242242
if p.id in h.axes["process"]
243243
],
244244
"category": [
245-
hist.loc(c.id)
245+
hist.loc(c.name)
246246
for c in leaf_category_insts
247-
if c.id in h.axes["category"]
247+
if c.name in h.axes["category"]
248248
],
249249
"shift": [
250-
hist.loc(s.id)
250+
hist.loc(s.name)
251251
for s in plot_shifts
252-
if s.id in h.axes["shift"]
252+
if s.name in h.axes["shift"]
253253
],
254254
}]
255255

law.cfg

+30-10
Original file line numberDiff line numberDiff line change
@@ -99,19 +99,39 @@ lfn_sources: local_desy_dcache, wlcg_fs_desy_store, wlcg_fs_infn_redirector, wlc
9999
# cf.MLTraining: wlcg
100100
# cf.MLEvaluation: wlcg
101101

102+
103+
[versions]
104+
105+
# NOTE: in hbw, we also define default versions via the analysis section
106+
# default versions of specific tasks to pin
107+
# the key can consist of multple underscore-separated parts, that can each be patterns or regexes
108+
# these parts are used for the lookup from within tasks and can contain (e.g.) the analysis name,
109+
# the config name, the task family, the dataset name, or the shift name
110+
# (see AnalysisTask.get_config_lookup_keys() - and subclasses - for the exact order)
111+
# note:
112+
# this lookup is skipped if the lookup based on the config instance's auxiliary data succeeded
113+
# example:
114+
; c22post__cf.CalibrateEvents__nomin*: common3
115+
; cf.SelectEvents: prod3
116+
117+
[resources]
118+
119+
# default sources of remote workflows
120+
# keys can have the same format as described above in [versions] to pinpoint specific tasks
121+
# values should be comma-separated strings in the form "RESOURCE=VALUE", where RESOURCE should refer
122+
# to a valid task parameter (e.g. max_runtime, htcondor_memory, etc.) so that VALUE can be parsed
123+
# by the respective parameter instance at runtime
124+
# same as for [versions], the order of options is important as it defines the resolution order
125+
# example:
126+
; c22post__cf.CalibrateEvents__nomin*: htcondor_memory=5GB
127+
; cf.MLTraining: htcondor_memory=10GB, htcondor_gpus=1
128+
129+
130+
[luigi_cf.DummyTask]
102131
# To set defaults on a per-task basis
103132
# NOTE: this does override defaults defined in the config, but it does not overwrite parameters
104133
# when the parameter has already been set e.g. by another task requiring this task
105-
106-
# TODO: to share some outputs over multiple analyses
107-
# [luigi_cf.GetDatasetLFNs]
108-
109-
# analysis: hbw.analysis.hbw_merged.hbw_merged
110-
111-
112-
# [luigi_cf.CalibrateEvents]
113-
114-
# analysis: hbw.analysis.hbw_merged.hbw_merged
134+
dummy_param: dummy_value
115135

116136

117137
[luigi_cf.MergeReductionStats]

0 commit comments

Comments
 (0)