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

Remove CMT URLs #1235

Merged
merged 34 commits into from
Jan 23, 2025
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
e3e141e
remove cmt from contexts.py
jmosbacher Aug 11, 2023
1de9017
remove cmt from plugin config defaults
jmosbacher Aug 11, 2023
abf44ab
Merge branch 'master' into remove_cmt_urls
dachengx Sep 3, 2023
5fe5727
Merge branch 'master' into remove_cmt_urls
WenzDaniel Nov 6, 2023
c6a049c
merge with master
LuisSanchez25 Apr 2, 2024
5533548
merge conflicts with master
LuisSanchez25 Apr 3, 2024
cdb575b
solve context conflicts + merge with master
LuisSanchez25 Apr 3, 2024
2b6bb96
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Apr 3, 2024
6136791
global_version -> xedocs_version
LuisSanchez25 Apr 3, 2024
e7d238b
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Apr 3, 2024
86a21a8
Merge branch 'master' into remove_cmt_urls
MerzJohannes Nov 28, 2024
52baf56
Merge branch 'master' into remove_cmt_urls
MerzJohannes Dec 11, 2024
e5a95c4
Update peak_positions_mlp.py
MerzJohannes Dec 11, 2024
4e2caa6
Resolved changes between master and
MerzJohannes Dec 13, 2024
0c882b8
Merge remote-tracking branch 'refs/remotes/origin/remove_cmt_urls' in…
MerzJohannes Dec 13, 2024
6bd3143
Resolve differences between main and
MerzJohannes Dec 13, 2024
736efba
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Dec 13, 2024
25bc267
Changed paths from cmt to xedocs
MerzJohannes Dec 13, 2024
611e67a
Merge remote-tracking branch 'refs/remotes/origin/remove_cmt_urls' in…
MerzJohannes Dec 13, 2024
e9d7ec8
Changed some links from cmt to xedocs
MerzJohannes Dec 13, 2024
8b5f898
Merge branch 'master' into remove_cmt_urls
dachengx Dec 16, 2024
04088ad
Minor format change
dachengx Dec 16, 2024
098778e
Merge branch 'master' into remove_cmt_urls
dachengx Dec 16, 2024
f5868aa
Debug
dachengx Dec 16, 2024
2ebf132
Debug
dachengx Dec 16, 2024
cc8cd60
Debug
dachengx Dec 16, 2024
8fa19e3
Merge branch 'master' into remove_cmt_urls
GiovanniVolta Jan 10, 2025
b44a551
Merge branch 'master' into remove_cmt_urls
GiovanniVolta Jan 17, 2025
42cdfd3
Follow https://github.com/XENONnT/corrections/pull/268
dachengx Jan 23, 2025
85b915b
Merge branch 'master' into remove_cmt_urls
dachengx Jan 23, 2025
7eff7ce
Update `se_gain` and `rel_extraction_eff`
dachengx Jan 23, 2025
4a3a8ef
Why we duplicated some URLConfigs?
dachengx Jan 23, 2025
895fee2
One more fix
dachengx Jan 23, 2025
35eefda
Debug `test_create_outside_peaks_region` and `test_n_hits`
dachengx Jan 23, 2025
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
47 changes: 34 additions & 13 deletions straxen/contexts.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,30 @@
xnt_common_config = dict(
n_tpc_pmts=straxen.n_tpc_pmts,
n_top_pmts=straxen.n_top_pmts,
gain_model="cmt://to_pe_model?version=ONLINE&run_id=plugin.run_id",
gain_model_nv="cmt://to_pe_model_nv?version=ONLINE&run_id=plugin.run_id",
gain_model_mv="cmt://to_pe_model_mv?version=ONLINE&run_id=plugin.run_id",
gain_model="list-to-array://"
"xedocs://pmt_area_to_pes"
"?as_list=True"
"&sort=pmt"
"&detector=tpc"
"&run_id=plugin.run_id"
"&version=ONLINE"
"&attr=value",
gain_model_nv="list-to-array://"
"xedocs://pmt_area_to_pes"
"?as_list=True"
"&sort=pmt"
"&detector=neutron_veto"
"&run_id=plugin.run_id"
"&version=ONLINE"
"&attr=value",
gain_model_mv="list-to-array://"
"xedocs://pmt_area_to_pes"
"?as_list=True"
"&sort=pmt"
"&detector=muon_veto"
"&run_id=plugin.run_id"
"&version=ONLINE"
"&attr=value",
channel_map=immutabledict(
# (Minimum channel, maximum channel)
# Channels must be listed in a ascending order!
Expand All @@ -58,10 +79,10 @@
# Event level parameters
fdc_map='itp_map://'
'resource://'
'cmt://'
'format://fdc_map_{alg}'
'?alg=plugin.default_reconstruction_algorithm'
'xedocs://fdc_maps'
'?algorithm=plugin.default_reconstruction_algorithm'
'&version=ONLINE'
'&attr=value'
'&run_id=plugin.run_id'
'&fmt=binary'
'&scale_coordinates=plugin.coordinate_scales',
Expand Down Expand Up @@ -96,18 +117,14 @@
##


def xenonnt(cmt_version='global_ONLINE', xedocs_version=None,
def xenonnt(global_version='global_v11',
_from_cutax=False, **kwargs):
"""XENONnT context"""
if not _from_cutax and cmt_version != 'global_ONLINE':
if not _from_cutax and global_version != 'global_ONLINE':
warnings.warn('Don\'t load a context directly from straxen, '
'use cutax instead!')
st = straxen.contexts.xenonnt_online(**kwargs)
st.apply_cmt_version(cmt_version)
st = straxen.contexts.xenonnt_online(global_version=global_version, **kwargs)

if xedocs_version is not None:
st.apply_xedocs_configs(version=xedocs_version, **kwargs)

return st


Expand Down Expand Up @@ -167,6 +184,7 @@ def xenonnt_online(output_folder: str = './strax_data',
_context_config_overwrite: ty.Optional[dict] = None,
_database_init: bool = True,
_forbid_creation_of: ty.Optional[dict] = None,
global_version: str = "global_ONLINE",
**kwargs):
"""
XENONnT online processing and analysis
Expand Down Expand Up @@ -282,6 +300,9 @@ def xenonnt_online(output_folder: str = './strax_data',
DeprecationWarning)
st.set_context_config(_context_config_overwrite)

if global_version is not None:
st.apply_xedocs_configs(version=global_version, **kwargs)

return st


Expand Down
2 changes: 1 addition & 1 deletion straxen/plugins/afterpulses/afterpulse_processing.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
dachengx marked this conversation as resolved.
Show resolved Hide resolved
help='Minimum hit amplitude in ADC counts above baseline. '
'Specify as a tuple of length n_tpc_pmts, or a number,'
'or a string like "legacy-thresholds://pmt_commissioning_initial" which means calling'
Expand Down
4 changes: 2 additions & 2 deletions straxen/plugins/defaults.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
dachengx marked this conversation as resolved.
Show resolved Hide resolved
}

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',
dachengx marked this conversation as resolved.
Show resolved Hide resolved
}

FAKE_MERGED_S2_TYPE = -42
26 changes: 15 additions & 11 deletions straxen/plugins/events/corrected_areas.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,45 +27,49 @@ class CorrectedAreas(strax.Plugin):

# Descriptor configs
elife = straxen.URLConfig(
default='cmt://elife?version=ONLINE&run_id=plugin.run_id',
default='xedocs://electron_lifetimes?attr=value&run_id=plugin.run_id&version=ONLINE',
help='electron lifetime in [ns]')

default_reconstruction_algorithm = straxen.URLConfig(
default=DEFAULT_POSREC_ALGO,
help="default reconstruction algorithm that provides (x,y)"
)
s1_xyz_map = straxen.URLConfig(
default='itp_map://resource://cmt://format://'
's1_xyz_map_{algo}?version=ONLINE&run_id=plugin.run_id'
'&fmt=json&algo=plugin.default_reconstruction_algorithm',
default='itp_map://'
'resource://'
'xedocs://s1_xyz_maps'
'?version=ONLINE&run_id=plugin.run_id&attr=value'
'&fmt=json&algorithm=plugin.default_reconstruction_algorithm',
cache=True)
s2_xy_map = straxen.URLConfig(
default='itp_map://resource://cmt://format://'
's2_xy_map_{algo}?version=ONLINE&run_id=plugin.run_id'
'&fmt=json&algo=plugin.default_reconstruction_algorithm',
default='itp_map://'
'resource://'
'xedocs://s2_xy_maps'
'?version=ONLINE&run_id=plugin.run_id&attr=value'
'&fmt=json&algorithm=plugin.default_reconstruction_algorithm',
cache=True)

# average SE gain for a given time period. default to the value of this run in ONLINE model
# thus, by default, there will be no time-dependent correction according to se gain
avg_se_gain = straxen.URLConfig(
default='cmt://avg_se_gain?version=ONLINE&run_id=plugin.run_id',
default='xedocs://avg_se_gains?run_id=plugin.run_id&version=ONLINE&attr=value',
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',
dachengx marked this conversation as resolved.
Show resolved Hide resolved
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',
dachengx marked this conversation as resolved.
Show resolved Hide resolved
help='Relative extraction efficiency for this run (allows for time dependence)')

# relative light yield
# defaults to no correction
rel_light_yield = straxen.URLConfig(
default='cmt://relative_light_yield?version=ONLINE&run_id=plugin.run_id',
default='xedocs://relative_light_yield?attr=value&run_id=plugin.run_id&version=ONLINE',
help='Relative light yield (allows for time dependence)'
)

Expand Down
4 changes: 1 addition & 3 deletions straxen/plugins/events/event_basics.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,7 @@ class EventBasics(strax.Plugin):
loop_over = 'events'

electron_drift_velocity = straxen.URLConfig(
default='cmt://'
'electron_drift_velocity'
'?version=ONLINE&run_id=plugin.run_id',
default='xedocs://electron_drift_velocities?attr=value&run_id=plugin.run_id&version=ONLINE',
cache=True,
help='Vertical electron drift velocity in cm/ns (1e4 m/ms)'
)
Expand Down
12 changes: 3 additions & 9 deletions straxen/plugins/events/event_pattern_fit.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,23 +20,17 @@ class EventPatternFit(strax.Plugin):

# Getting S1 AFT maps
s1_aft_map = straxen.URLConfig(
default='itp_map://resource://cmt://'
's1_aft_xyz_map'
'?version=ONLINE&run_id=plugin.run_id&fmt=json',
default='itp_map://resource://xedocs://s1_aft_xyz_maps?attr=value&fmt=json&run_id=plugin.run_id&version=ONLINE',
dachengx marked this conversation as resolved.
Show resolved Hide resolved
cache=True)

electron_drift_velocity = straxen.URLConfig(
default='cmt://'
'electron_drift_velocity'
'?version=ONLINE&run_id=plugin.run_id',
default='xedocs://electron_drift_velocities?attr=value&run_id=plugin.run_id&version=ONLINE',
cache=True,
help='Vertical electron drift velocity in cm/ns (1e4 m/ms)'
)

electron_drift_time_gate = straxen.URLConfig(
default='cmt://'
'electron_drift_time_gate'
'?version=ONLINE&run_id=plugin.run_id',
default='xedocs://electron_drift_time_gates?attr=value&run_id=plugin.run_id&version=ONLINE',
help='Electron drift time from the gate in ns',
cache=True)

Expand Down
8 changes: 2 additions & 6 deletions straxen/plugins/events/event_positions.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,13 @@ class EventPositions(strax.Plugin):
)

electron_drift_velocity = straxen.URLConfig(
default='cmt://'
'electron_drift_velocity'
'?version=ONLINE&run_id=plugin.run_id',
default='xedocs://electron_drift_velocities?attr=value&run_id=plugin.run_id&version=ONLINE',
cache=True,
help='Vertical electron drift velocity in cm/ns (1e4 m/ms)'
)

electron_drift_time_gate = straxen.URLConfig(
default='cmt://'
'electron_drift_time_gate'
'?version=ONLINE&run_id=plugin.run_id',
default='xedocs://electron_drift_time_gates?attr=value&run_id=plugin.run_id&version=ONLINE',
help='Electron drift time from the gate in ns',
cache=True)

Expand Down
7 changes: 1 addition & 6 deletions straxen/plugins/events/event_s2_positions_cnn.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,7 @@ class EventS2PositionCNN(EventS2PositionBase):
provides = "event_s2_positions_cnn"

tf_event_model_cnn = straxen.URLConfig(
default=f'tf://'
f'resource://'
f'cmt://{algorithm}_model'
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=cnn&run_id=plugin.run_id&version=ONLINE',
dachengx marked this conversation as resolved.
Show resolved Hide resolved
help='CNN model. Should be opened using the "tf" descriptor. '
'Set to "None" to skip computation',
cache=3,
Expand Down
7 changes: 1 addition & 6 deletions straxen/plugins/events/event_s2_positions_gcn.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,7 @@ class EventS2PositionGCN(EventS2PositionBase):
provides = "event_s2_positions_gcn"

tf_event_model_gcn = straxen.URLConfig(
default=f'tf://'
f'resource://'
f'cmt://{algorithm}_model'
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=cnn&run_id=plugin.run_id&version=ONLINE',
dachengx marked this conversation as resolved.
Show resolved Hide resolved
help='MLP model. Should be opened using the "tf" descriptor. '
'Set to "None" to skip computation',
cache=3,
Expand Down
7 changes: 1 addition & 6 deletions straxen/plugins/events/event_s2_positions_mlp.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,7 @@ class EventS2PositionMLP(EventS2PositionBase):
provides = "event_s2_positions_mlp"

tf_event_model_mlp = straxen.URLConfig(
default=f'tf://'
f'resource://'
f'cmt://{algorithm}_model'
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',
dachengx marked this conversation as resolved.
Show resolved Hide resolved
help='MLP model. Should be opened using the "tf" descriptor. '
'Set to "None" to skip computation',
cache=3,
Expand Down
4 changes: 1 addition & 3 deletions straxen/plugins/events/events.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,7 @@ class Events(strax.OverlapWindowPlugin):
events_seen = 0

electron_drift_velocity = straxen.URLConfig(
default='cmt://'
'electron_drift_velocity'
'?version=ONLINE&run_id=plugin.run_id',
default='xedocs://electron_drift_velocities?attr=value&run_id=plugin.run_id&version=ONLINE',
cache=True,
help='Vertical electron drift velocity in cm/ns (1e4 m/ms)'
)
Expand Down
4 changes: 1 addition & 3 deletions straxen/plugins/events/multi_scatter.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,7 @@ class EventInfoMS(strax.Plugin):
help='LXe work function in quanta/keV'
)
electron_drift_velocity = straxen.URLConfig(
default='cmt://'
'electron_drift_velocity'
'?version=ONLINE&run_id=plugin.run_id',
default='xedocs://electron_drift_velocities?attr=value&run_id=plugin.run_id&version=ONLINE',
cache=True,
help='Vertical electron drift velocity in cm/ns (1e4 m/ms)'
)
Expand Down
2 changes: 1 addition & 1 deletion straxen/plugins/hitlets_mv/hitlets_mv.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class muVETOHitlets(nVETOHitlets):
'the template.')

gain_model_mv = straxen.URLConfig(
default="cmt://to_pe_model_mv?version=ONLINE&run_id=plugin.run_id", infer_type=False,
default="list-to-array://xedocs://pmt_area_to_pes?as_list=True&sort=pmt&detector=muon_veto&run_id=plugin.run_id&version=ONLINE&attr=value", infer_type=False,
dachengx marked this conversation as resolved.
Show resolved Hide resolved
child_option=True, parent_option_name='gain_model_nv',
help='PMT gain model. Specify as (model_type, model_config)')

Expand Down
2 changes: 1 addition & 1 deletion straxen/plugins/hitlets_nv/hitlets_nv.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ class nVETOHitlets(strax.Plugin):
"channel number.")

gain_model_nv = straxen.URLConfig(
default="cmt://to_pe_model_nv?version=ONLINE&run_id=plugin.run_id", infer_type=False,
default="list-to-array://xedocs://pmt_area_to_pes?as_list=True&sort=pmt&detector=neutron_veto&run_id=plugin.run_id&version=ONLINE&attr=value", infer_type=False,
dachengx marked this conversation as resolved.
Show resolved Hide resolved
help='PMT gain model. Specify as (model_type, model_config, nT = True)')

def setup(self):
Expand Down
2 changes: 1 addition & 1 deletion straxen/plugins/peaklets/peaklets.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ class Peaklets(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',
dachengx marked this conversation as resolved.
Show resolved Hide resolved
help='Minimum hit amplitude in ADC counts above baseline. '
'Specify as a tuple of length n_tpc_pmts, or a number,'
'or a string like "pmt_commissioning_initial" which means calling'
Expand Down
2 changes: 1 addition & 1 deletion straxen/plugins/peaklets_he/peaklets_he.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class PeakletsHighEnergy(Peaklets):
' channels')

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,
dachengx marked this conversation as resolved.
Show resolved Hide resolved
help='Minimum hit amplitude in ADC counts above baseline. '
'Specify as a tuple of length n_tpc_pmts, or a number,'
'or a string like "pmt_commissioning_initial" which means calling'
Expand Down
4 changes: 1 addition & 3 deletions straxen/plugins/peaks/peak_classification_bayes.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,7 @@ class BayesPeakClassification(strax.Plugin):

# Descriptor configs
bayes_config_file = straxen.URLConfig(
default='resource://cmt://'
'bayes_model'
'?version=ONLINE&run_id=plugin.run_id&fmt=npy',
default='resource://xedocs://bayes_models?attr=value&fmt=npy&run_id=plugin.run_id&version=ONLINE',
dachengx marked this conversation as resolved.
Show resolved Hide resolved
help='Bayes model, conditional probabilities tables and Bayes discrete bins'
)
bayes_n_nodes = straxen.URLConfig(
Expand Down
8 changes: 2 additions & 6 deletions straxen/plugins/peaks/peak_corrections.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,13 @@ class PeakCorrectedAreas(CorrectedAreas):
provides = 'peak_corrections'

electron_drift_velocity = straxen.URLConfig(
default='cmt://'
'electron_drift_velocity'
'?version=ONLINE&run_id=plugin.run_id',
default='xedocs://electron_drift_velocities?attr=value&run_id=plugin.run_id&version=ONLINE',
cache=True,
help='Vertical electron drift velocity in cm/ns (1e4 m/ms)'
)

electron_drift_time_gate = straxen.URLConfig(
default='cmt://'
'electron_drift_time_gate'
'?version=ONLINE&run_id=plugin.run_id',
default='xedocs://electron_drift_time_gates?attr=value&run_id=plugin.run_id&version=ONLINE',
help='Electron drift time from the gate in ns',
cache=True)

Expand Down
7 changes: 1 addition & 6 deletions straxen/plugins/peaks/peak_positions_cnn.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,7 @@ class PeakPositionsCNN(PeakPositionsBaseNT):
__version__ = '0.0.1'

tf_model_cnn = straxen.URLConfig(
default=f'tf://'
f'resource://'
f'cmt://{algorithm}_model'
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=cnn&run_id=plugin.run_id&version=ONLINE',
dachengx marked this conversation as resolved.
Show resolved Hide resolved
help='CNN model. Should be opened using the "tf" descriptor. '
'Set to "None" to skip computation',
cache=3,
Expand Down
7 changes: 1 addition & 6 deletions straxen/plugins/peaks/peak_positions_gcn.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,7 @@ class PeakPositionsGCN(PeakPositionsBaseNT):
__version__ = '0.0.1'

tf_model_gcn = straxen.URLConfig(
default=f'tf://'
f'resource://'
f'cmt://{algorithm}_model'
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',
dachengx marked this conversation as resolved.
Show resolved Hide resolved
help='GCN model. Should be opened using the "tf" descriptor. '
'Set to "None" to skip computation',
cache=3,
Expand Down
Loading