Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: simplify main #141

Merged
merged 14 commits into from
Jan 29, 2025
Merged

refactor: simplify main #141

merged 14 commits into from
Jan 29, 2025

Conversation

DeltaDaniel
Copy link
Contributor

No description provided.

Comment on lines -166 to -192
if "json" in export_types:
json_path = output_path / Path(f"{ebd_key}.json")
_dump_json(json_path, ebd_meta_data)
click.secho(f"💾 Successfully exported '{ebd_key}.json' to {json_path.absolute()}")
try:
ebd_graph = convert_empty_table_to_graph(ebd_meta_data)
except (
EbdCrossReferenceNotSupportedError,
EndeInWrongColumnError,
OutcomeCodeAmbiguousError,
) as known_issue:
handle_known_error(known_issue, ebd_key)
continue
except Exception as unknown_error: # pylint:disable=broad-except
click.secho(f"Error while graphing {ebd_key}: {str(unknown_error)}; Skip!", fg="red")
continue
try:
if "dot" in export_types:
dot_path = output_path / Path(f"{ebd_key}.dot")
_dump_dot(dot_path, ebd_graph)
click.secho(f"💾 Successfully exported '{ebd_key}.dot' to {dot_path.absolute()}")
if "svg" in export_types:
svg_path = output_path / Path(f"{ebd_key}.svg")
_dump_svg(svg_path, ebd_graph, kroki_client)
click.secho(f"💾 Successfully exported '{ebd_key}.svg' to {svg_path.absolute()}")
except (PathsNotGreaterThanOneError, KrokiDotBadRequestError) as known_issue:
handle_known_error(known_issue, ebd_key)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

gehen uns hier nicht features verloren?
also das schreiben der dot und svg und json dateien und so?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sollte eigentlich nicht, weil im R_EBD_huhn die convert_empty_table_to_graph(ebd_meta_data) Funktion auch in der convert_table_to_graph Funktion aufgerufen wird. Ich musste gerade für den puml Zweig noch etwas anpassen. Da sind leere EBD Tabellen noch nicht unterstützt.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

folgender vorschlag:

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ich bin selber gespannt 🙈

@DeltaDaniel DeltaDaniel merged commit 70742fe into main Jan 29, 2025
15 checks passed
@DeltaDaniel DeltaDaniel deleted the simplify_main branch January 29, 2025 08:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants