mirror of https://codeberg.org/topola/topola.git
dsn: make import skip rather than panic on unsupported shapes
This should help debug the infringements happening when trying to load prerouted_lm317_breakout.
This commit is contained in:
parent
6bbbc368c6
commit
137026301c
|
|
@ -85,23 +85,24 @@ impl DsnDesign {
|
||||||
.unwrap();
|
.unwrap();
|
||||||
|
|
||||||
// no layer support yet, pick the first one
|
// no layer support yet, pick the first one
|
||||||
let circle = match &padstack.shape_vec[0] {
|
match &padstack.shape_vec[0] {
|
||||||
Shape::Circle(circle) => circle,
|
Shape::Circle(circle) => {
|
||||||
Shape::Rect(_) => todo!(),
|
let circle = Circle {
|
||||||
Shape::Path(_) => todo!(),
|
pos: (place.x as f64 / 100.0, -place.y as f64 / 100.0).into(),
|
||||||
Shape::Polygon(_) => todo!(),
|
r: circle.diameter as f64 / 200.0,
|
||||||
};
|
};
|
||||||
let circle = Circle {
|
|
||||||
pos: (place.x as f64 / 100.0, -place.y as f64 / 100.0).into(),
|
|
||||||
r: circle.diameter as f64 / 200.0,
|
|
||||||
};
|
|
||||||
|
|
||||||
layout
|
layout
|
||||||
.add_fixed_dot(FixedDotWeight {
|
.add_fixed_dot(FixedDotWeight {
|
||||||
net: *net_id as i64,
|
net: *net_id as i64,
|
||||||
circle,
|
circle,
|
||||||
})
|
})
|
||||||
.unwrap();
|
.unwrap();
|
||||||
|
}
|
||||||
|
Shape::Rect(_) => (),
|
||||||
|
Shape::Path(_) => (),
|
||||||
|
Shape::Polygon(_) => (),
|
||||||
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue