Skip to content
This repository has been archived by the owner on Mar 13, 2024. It is now read-only.

Harden dot output against nodes with dots in their names #66

Merged
merged 1 commit into from
Apr 4, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions ibis/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ pub mod wasm {

#[wasm_bindgen]
pub fn version_info() -> String {
setup();
super::version_info()
}

Expand Down
2 changes: 1 addition & 1 deletion ibis/src/to_dot_impls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ impl ToDot for (&Ibis, &Recipe) {
let sol = &recipe.id.expect("Every recipe should have an id?");
let s_id = sol_id(sol);
let particle_id = |particle| format!("{}_p_{}", &s_id, particle);
let node_id = |node| format!("{}_h_{}", &s_id, node);
let node_id = |node| format!("{}_h_{}", &s_id, node).replace('.', "_");
let mut sol_graph = DotGraph::default();
let mut particles = HashMap::new();
for Node(particle, node, cap, ty) in &ibis.shared.nodes {
Expand Down