-
Notifications
You must be signed in to change notification settings - Fork 1
Description
Wir erzeugen beim malo-ident ebd e_0594 zunächst viele kleine outcomenodes mit notizen, die aber nicht connected sind mit dem rest des graphen. deswegen hängen sie dann alle einzeln im SVG rum
wir entfernen sie mit einem dreckigen Trick nachträglich wieder. Besser wäre es, sie gar nicht erst anzulegen, dann müsste man sie hinterher nicht loswerden und hätte doppelt code gespart.
rebdhuhn/src/rebdhuhn/graph_conversion.py
Lines 233 to 240 in 055c3a7
| def _apply_workaround_to_issue_383(graph: DiGraph) -> None: | |
| """ | |
| removes isolated hinweis nodes which are not connected to the graph, e.g. 'Es gibt 1..n Treffer'... | |
| Ideally we'd not create them at all, then we wouldn't have to remove them in a post processing step. | |
| https://github.com/Hochfrequenz/rebdhuhn/issues/383 | |
| """ | |
| isolated = list(isolates(graph)) | |
| graph.remove_nodes_from(isolated) |
varianten: entweder gar nicht erst anlegen ODER mit einer edge irgendwie verbinden.
andererseits ignorieren wir hinweise auch shcon anderswo
rebdhuhn/src/rebdhuhn/graph_conversion.py
Line 61 in 5f924d8
| # We ignore Hinweise, if they are in during a decision process. |
the wrong svg without the hacky workaround:

