(element)
| 151 | |
| 152 | |
| 153 | def _geometry_summary(element) -> dict | None: |
| 154 | if not hasattr(element, "Representation") or not element.Representation: |
| 155 | return None |
| 156 | body_rep = next( |
| 157 | (r for r in element.Representation.Representations if r.RepresentationIdentifier == "Body"), |
| 158 | None, |
| 159 | ) |
| 160 | if body_rep is None: |
| 161 | return None |
| 162 | try: |
| 163 | return _summarize_rep(body_rep) |
| 164 | except Exception: |
| 165 | return None |
| 166 | |
| 167 | |
| 168 | def _serialize_attribute(value: Any) -> Any: |
no test coverage detected