Skip to content

Commit

Permalink
Merge branch 'main' of github.com:marschall-lab/panacus
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Heringer committed Oct 17, 2024
2 parents 1c3e673 + 0c15bdc commit b4f7ddb
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
1 change: 1 addition & 0 deletions src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -480,6 +480,7 @@ pub enum Params {
//},
}

#[cfg(test)]
impl Params {
#[allow(dead_code)]
pub fn test_default_histgrowth() -> Self {
Expand Down
14 changes: 10 additions & 4 deletions src/graph.rs
Original file line number Diff line number Diff line change
Expand Up @@ -247,10 +247,16 @@ impl GraphAuxilliary {
) -> GroupInfo {
let mut group_map: HashMap<String, (u32, u32)> = HashMap::new();
for (k, v) in paths_len {
if !groups.contains_key(k) {
continue;
}
let group = groups[k].clone();
let group = if !groups.contains_key(k) {
let k = k.clear_coords();
if !groups.contains_key(&k) {
log::debug!("Path segment {:?} not in groups", k);
continue;
}
groups[&k].clone()
} else {
groups[k].clone()
};
let tmp = group_map.entry(group).or_insert((0, 0));
tmp.0 += v.0;
tmp.1 += v.1;
Expand Down

0 comments on commit b4f7ddb

Please sign in to comment.