From b86a9df7fb203914a858d03ad58e5022fa436645 Mon Sep 17 00:00:00 2001 From: Daniel Bauer Date: Tue, 13 Nov 2018 09:19:17 +0100 Subject: [PATCH] remove TODO/comments --- src/io.rs | 1 + src/lib.rs | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/src/io.rs b/src/io.rs index 4000ed7..ab30fdd 100644 --- a/src/io.rs +++ b/src/io.rs @@ -157,6 +157,7 @@ fn read_window_file(window_file: &str, cfg: &Config) -> Result { Ok(Histogram::new(num_points as u32, hist)) } +// Write WHAM calculation results to out_file. pub fn write_results(out_file: &str, ds: &Dataset, free: &Vec, prob: &Vec) -> Result<()> { let output = File::create(out_file) .chain_err(|| format!("Failed to create file with path {}", out_file))?; diff --git a/src/lib.rs b/src/lib.rs index 333bbaa..daa79f0 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -145,7 +145,6 @@ pub fn run(cfg: &Config) -> Result<()>{ println!("Supplied WHAM options: {}", &cfg); println!("Reading input files."); - // TODO Better error handling with nice error messages instead of a panic! let dataset = io::read_data(&cfg).chain_err(|| "Failed to create histogram.")?; println!("{}", &dataset);