remove TODO/comments

This commit is contained in:
Daniel Bauer
2018-11-13 09:19:17 +01:00
parent 193ed89d5e
commit b86a9df7fb
2 changed files with 1 additions and 1 deletions

View File

@@ -157,6 +157,7 @@ fn read_window_file(window_file: &str, cfg: &Config) -> Result<Histogram> {
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<f64>, prob: &Vec<f64>) -> Result<()> {
let output = File::create(out_file)
.chain_err(|| format!("Failed to create file with path {}", out_file))?;

View File

@@ -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);