Removed debugging prints

This commit is contained in:
Weird Constructor 2021-07-23 03:51:43 +02:00
parent c15557d270
commit cdb054b62c
6 changed files with 3 additions and 15 deletions

View file

@ -159,7 +159,6 @@ impl Rng {
}
pub fn seed(&mut self, seed: u64) {
println!("SEED {}", seed);
self.sm = SplitMix64::new(seed);
}

View file

@ -948,7 +948,6 @@ impl Matrix {
let mut prog = self.config.rebuild_node_ports();
for node_id in ordered_nodes.iter() {
println!("PROG NODE ORD: {:?}", node_id);
self.config.add_prog_node(&mut prog, node_id);
}

View file

@ -513,8 +513,6 @@ mod tests {
let sl = frontend.get_minmax_monitor_samples(0);
println!("{:?}", sl);
assert_eq!(sl[MONITOR_MINMAX_SAMPLES - 1], (-0.7, 0.6));
assert_eq!(sl[MONITOR_MINMAX_SAMPLES - 2], (-0.7, 0.8));
assert_eq!(sl[MONITOR_MINMAX_SAMPLES - 3], (-0.9, 0.8));
@ -614,7 +612,6 @@ mod tests {
backend.check_recycle();
let sl = frontend.get_minmax_monitor_samples(0);
println!("{:?}", sl);
assert_eq!(
(sl[MONITOR_MINMAX_SAMPLES - 1].1 * 10000.0).floor() as u32,

View file

@ -27,7 +27,7 @@ impl DropThread {
while let Some(_node) = graph_drop_con.pop() {
// drop it ...
println!("Dropped some shit...");
//d// println!("Dropped some shit...");
}
std::thread::sleep(std::time::Duration::from_millis(250));

View file

@ -354,7 +354,6 @@ impl NodeConfigurator {
if let Some(modamt) = &mut nparam.modamt {
mod_idx = Some(modamt.0);
modamt.1 = v.unwrap_or(0.0);
println!("SET NPARAM MOD AMT {:?} {:?} {}", param, mod_idx, modamt.1);
}
}
@ -365,7 +364,6 @@ impl NodeConfigurator {
self.param_modamt.get(&param).copied().flatten()
{
if v.is_none() {
println!("SET NEW NONE MOD AMT {:?}", param);
self.param_modamt.insert(param, v);
true
@ -374,7 +372,6 @@ impl NodeConfigurator {
self.param_modamt.insert(param, v);
if let Some(mod_idx) = mod_idx {
println!("SET UPD MOD AMT {:?} {:?} {:?}", param, mod_idx, modamt);
let _ =
self.shared.quick_update_prod.push(
QuickMessage::ModamtUpdate { mod_idx, modamt });
@ -692,8 +689,6 @@ impl NodeConfigurator {
}
pub fn create_node(&mut self, ni: NodeId) -> Option<(&NodeInfo, u8)> {
println!("create_node: {}", ni);
if let Some((mut node, info)) = node_factory(ni) {
let mut index : Option<usize> = None;
@ -826,8 +821,8 @@ impl NodeConfigurator {
// allocation in the output vector.
*node_instance = Some(ni);
println!("INSERT[{}]: {:?} outidx: {},{} inidx: {},{} atidx: {},{}",
i, id, out_idx, out_len, in_idx, in_len, at_idx, at_len);
//d// println!("INSERT[{}]: {:?} outidx: {},{} inidx: {},{} atidx: {},{}",
//d// i, id, out_idx, out_len, in_idx, in_len, at_idx, at_len);
// Create new parameters and initialize them if they did not
// already exist previously

View file

@ -348,8 +348,6 @@ impl NodeProg {
pub fn assign_outputs(&mut self) {
for op in self.prog.iter() {
println!("ASSIGN OUTPUTS: {}", op);
// First step is copying the ProcBufs to the `cur_inp` current
// input buffer vector. It holds the data for smoothed paramter
// inputs or just constant values since the last smoothing.