From c0d6b468df47e12bdbf5208c891ecac4f851911f Mon Sep 17 00:00:00 2001 From: Manuel Carrer Date: Mon, 29 Apr 2024 16:06:25 +0200 Subject: [PATCH] Move ScheduleDag --- src/lib.rs | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index ee5dcf1..20462ae 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -189,6 +189,14 @@ pub mod dev_utils { } } + /// A wrapper struct that separates time series and spatial tests + /// into two different DAGs + #[derive(Debug, Clone)] + pub struct ScheduleDag { + pub series: Option>, + pub spatial: Option>, + } + pub fn construct_fake_dag() -> ScheduleDag { let mut dag: Dag<&'static str> = Dag::new(); @@ -208,12 +216,6 @@ pub mod dev_utils { } } - #[derive(Debug, Clone)] - pub struct ScheduleDag { - pub series: Option>, - pub spatial: Option>, - } - pub fn construct_hardcoded_dag() -> ScheduleDag { let mut series: Dag<&'static str> = Dag::new(); series.add_node("dip_check");