From 5b17f47d9330761b169f58b16e953dcefa8136af Mon Sep 17 00:00:00 2001 From: dachengx Date: Sun, 28 Apr 2024 10:26:52 -0500 Subject: [PATCH] Set `child_plugin` to salting plugins Because they borrowed the functions but not the lineage --- axidence/plugins/salting/event_building.py | 2 ++ axidence/plugins/salting/peak_correlation.py | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/axidence/plugins/salting/event_building.py b/axidence/plugins/salting/event_building.py index 5ea7a4d..0c12f2b 100644 --- a/axidence/plugins/salting/event_building.py +++ b/axidence/plugins/salting/event_building.py @@ -10,6 +10,7 @@ class EventsSalted(Events, ExhaustPlugin): __version__ = "0.1.0" + child_plugin = True depends_on = ("peaks_salted", "peak_proximity_salted", "peak_basics", "peak_proximity") provides = "events_salted" data_kind = "events_salted" @@ -111,6 +112,7 @@ def compute(self, peaks_salted, peaks, start, end): class EventBasicsSalted(EventBasics, ExhaustPlugin): __version__ = "0.0.0" + child_plugin = True depends_on: Tuple[str, ...] = ( "events_salted", "peaks_salted", diff --git a/axidence/plugins/salting/peak_correlation.py b/axidence/plugins/salting/peak_correlation.py index 1215f65..f8d4555 100644 --- a/axidence/plugins/salting/peak_correlation.py +++ b/axidence/plugins/salting/peak_correlation.py @@ -8,6 +8,7 @@ class PeakProximitySalted(PeakProximity): __version__ = "0.0.0" + child_plugin = True depends_on = ("peaks_salted", "peak_basics") provides = "peak_proximity_salted" data_kind = "peaks_salted" @@ -60,6 +61,7 @@ def find_n_competing(peaks, peaks_salted, windows, fraction): class PeakShadowSalted(PeakShadow): __version__ = "0.0.0" + child_plugin = True depends_on = ("peaks_salted", "peak_basics", "peak_positions") provides = "peak_shadow_salted" data_kind = "peaks_salted" @@ -80,6 +82,7 @@ def compute(self, peaks_salted, peaks): class PeakAmbienceSalted(PeakAmbience): __version__ = "0.0.0" + child_plugin = True depends_on = ("peaks_salted", "lone_hits", "peak_basics", "peak_positions") provides = "peak_ambience_salted" data_kind = "peaks_salted" @@ -100,6 +103,7 @@ def compute(self, peaks_salted, lone_hits, peaks): class PeakNearestTriggeringSalted(PeakNearestTriggering): __version__ = "0.0.0" + child_plugin = True depends_on = ("peaks_salted", "peak_proximity_salted", "peak_basics", "peak_proximity") provides = "peak_nearest_triggering_salted" data_kind = "peaks_salted" @@ -120,6 +124,7 @@ def compute(self, peaks_salted, peaks): class PeakSEDensitySalted(PeakSEDensity): __version__ = "0.0.0" + child_plugin = True depends_on = ("peaks_salted", "peak_basics", "peak_positions") provides = "peak_se_density_salted" data_kind = "peaks_salted"