-
Notifications
You must be signed in to change notification settings - Fork 33
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
Remove cmt urls #1235
base: master
Are you sure you want to change the base?
Remove cmt urls #1235
Conversation
jmosbacher
commented
Aug 11, 2023
- Replace all CMT URLs with xedoc URLs
- unify "cmt_version" and "xedocs_version" arguments in the context functions, replace with single "global_version" argument which loads configs from xedocs.
@@ -42,7 +42,7 @@ class LEDAfterpulseProcessing(strax.Plugin): | |||
|
|||
hit_min_amplitude = straxen.URLConfig( | |||
track=True, infer_type=False, | |||
default='cmt://hit_thresholds_tpc?version=ONLINE&run_id=plugin.run_id', | |||
default='list-to-array://xedocs://hit_thresholds?as_list=True&sort=pmt&attr=value&detector=tpc&run_id=plugin.run_id&version=ONLINE', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[pep8] reported by reviewdog 🐶
E501 line too long (140 > 100 characters)
straxen/plugins/defaults.py
Outdated
@@ -7,12 +7,12 @@ | |||
|
|||
NV_HIT_DEFAULTS = { | |||
'save_outside_hits_nv': (3, 15), | |||
'hit_min_amplitude_nv': 'cmt://hit_thresholds_nv?version=ONLINE&run_id=plugin.run_id', | |||
'hit_min_amplitude_nv': 'xedocs://hit_thresholds?version=ONLINE&run_id=plugin.run_id&detector=neutron_veto', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[pep8] reported by reviewdog 🐶
E501 line too long (112 > 100 characters)
straxen/plugins/defaults.py
Outdated
} | ||
|
||
MV_HIT_DEFAULTS = { | ||
'save_outside_hits_mv': (2, 5), | ||
'hit_min_amplitude_mv': 'cmt://hit_thresholds_mv?version=ONLINE&run_id=plugin.run_id', | ||
'hit_min_amplitude_mv': 'xedocs://hit_thresholds_mv?version=ONLINE&run_id=plugin.run_id&detector=muon_veto', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[pep8] reported by reviewdog 🐶
E501 line too long (112 > 100 characters)
help='Nominal single electron (SE) gain in PE / electron extracted. ' | ||
'Data will be corrected to this value') | ||
|
||
# se gain for this run, allowing for using CMT. default to online | ||
se_gain = straxen.URLConfig( | ||
default='cmt://se_gain?version=ONLINE&run_id=plugin.run_id', | ||
default='objects-to-dict://xedocs://se_gains?run_id=plugin.run_id&version=ONLINE&partition=ab&partition=cd&as_list=True&sort=partition&key_attr=partition&value_attr=value', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[pep8] reported by reviewdog 🐶
E501 line too long (180 > 100 characters)
help='Actual SE gain for a given run (allows for time dependence)') | ||
|
||
# relative extraction efficiency which can change with time and modeled by CMT. | ||
rel_extraction_eff = straxen.URLConfig( | ||
default='cmt://rel_extraction_eff?version=ONLINE&run_id=plugin.run_id', | ||
default='objects-to-dict://xedocs://rel_extraction_effs?partition=ab&partition=cd&run_id=plugin.run_id&sort=partition&as_list=True&version=ONLINE&key_attr=partition&value_attr=value', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[pep8] reported by reviewdog 🐶
E501 line too long (191 > 100 characters)
f'?version=ONLINE' | ||
f'&run_id=plugin.run_id' | ||
f'&fmt=abs_path', | ||
default='tf://resource://xedocs://posrec_models?attr=value&fmt=abs_path&kind=gcn&run_id=plugin.run_id&version=ONLINE', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[pep8] reported by reviewdog 🐶
E501 line too long (126 > 100 characters)
f'?version=ONLINE' | ||
f'&run_id=plugin.run_id' | ||
f'&fmt=abs_path', | ||
default='tf://resource://xedocs://posrec_models?attr=value&fmt=abs_path&kind=mlp&run_id=plugin.run_id&version=ONLINE', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[pep8] reported by reviewdog 🐶
E501 line too long (126 > 100 characters)
straxen/plugins/records/records.py
Outdated
@@ -109,7 +109,7 @@ class PulseProcessing(strax.Plugin): | |||
|
|||
hit_min_amplitude = straxen.URLConfig( | |||
track=True, infer_type=False, | |||
default='cmt://hit_thresholds_tpc?version=ONLINE&run_id=plugin.run_id', | |||
default='list-to-array://xedocs://hit_thresholds?as_list=True&sort=pmt&attr=value&detector=tpc&run_id=plugin.run_id&version=ONLINE', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[pep8] reported by reviewdog 🐶
E501 line too long (140 > 100 characters)
@@ -31,7 +31,7 @@ class PulseProcessingHighEnergy(PulseProcessing): | |||
help="Number of samples per raw_record") | |||
|
|||
hit_min_amplitude_he = straxen.URLConfig( | |||
default='cmt://hit_thresholds_he?version=ONLINE&run_id=plugin.run_id', track=True, infer_type=False, | |||
default='list-to-array://xedocs://hit_thresholds?as_list=True&sort=pmt&attr=value&detector=tpc_he&run_id=plugin.run_id&version=ONLINE', track=True, infer_type=False, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[pep8] reported by reviewdog 🐶
E501 line too long (173 > 100 characters)
@@ -43,7 +43,7 @@ class nVETOPulseProcessing(strax.Plugin): | |||
|
|||
baseline_samples_nv = straxen.URLConfig( | |||
infer_type=False, | |||
default='cmt://baseline_samples_nv?version=ONLINE&run_id=plugin.run_id', track=True, | |||
default='xedocs://baseline_samples_nv?attr=value&run_id=plugin.run_id&version=ONLINE', track=True, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[pep8] reported by reviewdog 🐶
E501 line too long (106 > 100 characters)
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
@LuisSanchez25 is this PR important for migrating from CMT to xedocs? |
Depends what you mean by it. This PR mainly changes the default values is straxen, which are rarely used anyways, so it should not affect the processing of things, however, to transition to xedocs fully this is something that should be done eventually but its not immediately necessary. The main issue I believe is that there are some tests that are designed around CMT that we need to rewrite to work with xedocs. I will ask @Ananthu-Ravindran if he thinks he could work on this. |
Let me also remind you that @PeterGy offers his help for xedocs-related business. This is good way to start |
It seems the logs for what tests fail have been deleted due to lack of retention (the tests were ran back in April). It would be useful to rerun them to see where and how they fail. Unfortunately, I do not seem to have permission to rerun any tests on this repo. |
One the conflicts are squashed we can make this into a PR instead of a draft PR, then the tests will run automatically |