# HG changeset patch # User Tuomo Valkonen # Date 1670793557 -7200 # Node ID 9869fa1e0ccd24c7b3ffe03ec0aafe10958e275f # Parent 9fb8ecb3da74e982021fc8059e4b122843718a64 Print out experiment information when running it diff -r 9fb8ecb3da74 -r 9869fa1e0ccd src/rand_distr.rs --- a/src/rand_distr.rs Sat Dec 10 16:22:38 2022 +0200 +++ b/src/rand_distr.rs Sun Dec 11 23:19:17 2022 +0200 @@ -8,6 +8,7 @@ use alg_tools::types::*; /// Wrapper for [`Normal`] that can be serialized by serde. +#[derive(Debug)] pub struct SerializableNormal(Normal) where StandardNormal : Distribution; diff -r 9fb8ecb3da74 -r 9869fa1e0ccd src/run.rs --- a/src/run.rs Sat Dec 10 16:22:38 2022 +0200 +++ b/src/run.rs Sun Dec 11 23:19:17 2022 +0200 @@ -326,17 +326,18 @@ Named> where F : ClapFloat + nalgebra::RealField + ToNalgebraRealField, [usize; N] : Serialize, - S : Sensor + Copy + Serialize, - P : Spread + Copy + Serialize, + S : Sensor + Copy + Serialize + std::fmt::Debug, + P : Spread + Copy + Serialize + std::fmt::Debug, Convolution: Spread + Bounded + LocalAnalysis, N> + Copy, AutoConvolution

: BoundedBy, - K : SimpleConvolutionKernel + LocalAnalysis, N> + Copy + Serialize, + K : SimpleConvolutionKernel + LocalAnalysis, N> + + Copy + Serialize + std::fmt::Debug, Cube: P2Minimise, F> + SetOrd, PlotLookup : Plotting, DefaultBT : SensorGridBT + BTSearch, BTNodeLookup: BTNode, N>, DiscreteMeasure, F> : SpikeMerging, - NoiseDistr : Distribution + Serialize { + NoiseDistr : Distribution + Serialize + std::fmt::Debug { fn algorithm_defaults(&self, alg : DefaultAlgorithm, cli : &AlgorithmOverrides) -> Named> { @@ -362,6 +363,10 @@ } } = self; + println!("{}\n{}", + format!("Performing experiment {}…", experiment_name).cyan(), + format!("{:?}", &self.data).bright_black()); + // Set up output directory let prefix = format!("{}/{}/", cli.outdir, self.name);