cleanup and comment out unused functions
This commit is contained in:
@@ -159,6 +159,8 @@ impl Grid {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// No longer needed (moved to imgdata.rs)
|
||||||
|
/*
|
||||||
pub fn quantile(&self, fraction: f32) -> f32 {
|
pub fn quantile(&self, fraction: f32) -> f32 {
|
||||||
let index = if (fraction - 1.0_f32).abs() < f32::EPSILON {
|
let index = if (fraction - 1.0_f32).abs() < f32::EPSILON {
|
||||||
self.data.len() - 1
|
self.data.len() - 1
|
||||||
@@ -175,6 +177,7 @@ impl Grid {
|
|||||||
pub fn data(&self) -> &[f32] {
|
pub fn data(&self) -> &[f32] {
|
||||||
&self.data
|
&self.data
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn combine<T>(grids: &mut [Grid], attraction_table: &[T])
|
pub fn combine<T>(grids: &mut [Grid], attraction_table: &[T])
|
||||||
|
|||||||
@@ -194,7 +194,7 @@ impl Model {
|
|||||||
|
|
||||||
pub fn render_all_imgdata(&self) {
|
pub fn render_all_imgdata(&self) {
|
||||||
if !Path::new("./tmp").exists() {
|
if !Path::new("./tmp").exists() {
|
||||||
std::fs::create_dir("./tmp");
|
std::fs::create_dir("./tmp").expect("could create directory");
|
||||||
}
|
}
|
||||||
|
|
||||||
let pb = ProgressBar::new(self.img_data_vec.len() as u64);
|
let pb = ProgressBar::new(self.img_data_vec.len() as u64);
|
||||||
|
|||||||
Reference in New Issue
Block a user