Skip to content
This repository has been archived by the owner on Feb 3, 2025. It is now read-only.

🆕 Alles Neu: maus v0.3.1 #189

Merged
merged 145 commits into from
Jan 23, 2023
Merged

🆕 Alles Neu: maus v0.3.1 #189

merged 145 commits into from
Jan 23, 2023

Conversation

hf-kklein
Copy link
Contributor

@hf-kklein hf-kklein commented Dec 14, 2022

@hf-kklein hf-kklein changed the title 🆕 Alles Neu 🆕 Alles Neu: maus v0.3.1 Jan 16, 2023
@hf-kklein hf-kklein requested a review from hf-krechan January 17, 2023 07:29
Copy link
Contributor

@hf-krechan hf-krechan left a comment

Choose a reason for hiding this comment

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

Ein paar kleine Änderungswünsche

src/maus/mig_ahb_matching.py Show resolved Hide resolved
src/maus/mig_ahb_matching.py Show resolved Hide resolved
for data_element_value_entry in ahb_lines:
if data_element_value_entry.name is None:
# pylint:disable=fixme
# todo: this is line where there is only a description and nothing else. i hate it
Copy link
Contributor

Choose a reason for hiding this comment

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

der Satz ist etwas holprig. Fehlt da nur ein the nach "is"?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

f4d9b83 zeile jetzt ganz weg; #21 besteht nicht mehr in kohlrahbi

src/maus/mig_ahb_matching.py Outdated Show resolved Hide resolved
Comment on lines 109 to 111
append_next_data_elements_here: List[DataElement]
append_next_sg_here: List[SegmentGroup]
append_next_segments_here: List[Segment]
Copy link
Contributor

Choose a reason for hiding this comment

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

würde es nicht reichen einfach nur next_data_elements zu verwenden?

Copy link
Contributor

Choose a reason for hiding this comment

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

gleiches für next_segment_groups und next_segments?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ja, ich verstehe den schmerz... Allerdings würde ich es ungern "next_segments_groups" nennen, weil das implizieren könnte man hätte hier einen peek in die noch folgenden zeilen. tatsächlich ist diese liste aber eine referenz auf die jeweilige liste innerhalb derkurz zuvor angelegte semgentgruppe bzw. des zuvor angelegten Segments.
ich habe versucht das in einem kommentar nochmal deutlich zu machen:
e225d08

check gerne nochmal, ob du das gleiche verständnis hast und welcher name ggf. besser wäre.

src/maus/reader/mig_xml_reader.py Show resolved Hide resolved
tests/integration_tests/helpers.py Show resolved Hide resolved
Comment on lines +44 to +51
# assert (
# len(
# result.maus.find_segments(
# segment_predicate=lambda seg: seg.section_name == "Datum des bereits bestaetigten Vertragsendes",
# ) # the "ae" instead of "ä" is somehow important, we don't want an 'ä' ... for reasons
# )
# > 0
# ) # https://github.com/Hochfrequenz/edifact-templates/pull/163 / ED4FTR-24952
Copy link
Contributor

Choose a reason for hiding this comment

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

still needed?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

das müsstest du ws. im kohlrahbi "fixen" dass irgendeines unserer toolings da ein ä erwartet

Comment on lines 45 to 76
# @pytest.mark.datafiles("./edifact-templates/edi/UTILMD/UTILMD5.2e.template")
# @pytest.mark.datafiles("../../machine-readable_anwendungshandbuecher/FV2210/UTILMD/flatahb/11120.json")
# @pytest.mark.datafiles("../unit_tests/migs/FV2210/segment_group_hierarchies/sgh_utilmd.json")
# def test_maus_creation_11120_52e(self, datafiles):
# create_maus_and_assert(
# flat_ahb_path=Path(datafiles) / "11120.json",
# sgh_path=Path(datafiles) / "sgh_utilmd.json",
# template_path=Path(datafiles) / Path("UTILMD5.2e.template"),
# maus_path=Path("edifact-templates/maus/FV2210/UTILMD/11120_maus.json"),
# )

# @pytest.mark.datafiles("./edifact-templates/edi/UTILMD/UTILMD5.2e.template")
# @pytest.mark.datafiles("../../machine-readable_anwendungshandbuecher/FV2210/UTILMD/flatahb/11124.json")
# @pytest.mark.datafiles("../unit_tests/migs/FV2210/segment_group_hierarchies/sgh_utilmd.json")
# def test_maus_creation_11124_52e(self, datafiles):
# create_maus_and_assert(
# flat_ahb_path=Path(datafiles) / "11124.json",
# sgh_path=Path(datafiles) / "sgh_utilmd.json",
# template_path=Path(datafiles) / Path("UTILMD5.2e.template"),
# maus_path=Path("edifact-templates/maus/FV2210/UTILMD/11124_maus.json"),
# )
#
# @pytest.mark.datafiles("./edifact-templates/edi/UTILMD/UTILMD5.2e.template")
# @pytest.mark.datafiles("../../machine-readable_anwendungshandbuecher/FV2210/UTILMD/flatahb/11127.json")
# @pytest.mark.datafiles("../unit_tests/migs/FV2210/segment_group_hierarchies/sgh_utilmd.json")
# def test_maus_creation_11127_52e(self, datafiles):
# create_maus_and_assert(
# flat_ahb_path=Path(datafiles) / "11127.json",
# sgh_path=Path(datafiles) / "sgh_utilmd.json",
# template_path=Path(datafiles) / Path("UTILMD5.2e.template"),
# maus_path=Path("edifact-templates/maus/FV2210/UTILMD/11127_maus.json"),
# )
Copy link
Contributor

Choose a reason for hiding this comment

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

still needed?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Comment on lines 126 to 157
# @pytest.mark.datafiles("./edifact-templates/edi/UTILMD/UTILMD5.2e.template")
# @pytest.mark.datafiles("../../machine-readable_anwendungshandbuecher/FV2210/UTILMD/flatahb/11123.json")
# @pytest.mark.datafiles("../unit_tests/migs/FV2210/segment_group_hierarchies/sgh_utilmd.json")
# def test_maus_creation_11123_52e(self, datafiles):
# create_maus_and_assert(
# flat_ahb_path=Path(datafiles) / "11123.json",
# sgh_path=Path(datafiles) / "sgh_utilmd.json",
# template_path=Path(datafiles) / Path("UTILMD5.2e.template"),
# maus_path=Path("edifact-templates/maus/FV2210/UTILMD/11123_maus.json"),
# )
#
# @pytest.mark.datafiles("./edifact-templates/edi/UTILMD/UTILMD5.2e.template")
# @pytest.mark.datafiles("../../machine-readable_anwendungshandbuecher/FV2210/UTILMD/flatahb/11218.json")
# @pytest.mark.datafiles("../unit_tests/migs/FV2210/segment_group_hierarchies/sgh_utilmd.json")
# def test_maus_creation_11218_52e(self, datafiles):
# create_maus_and_assert(
# flat_ahb_path=Path(datafiles) / "11218.json",
# sgh_path=Path(datafiles) / "sgh_utilmd.json",
# template_path=Path(datafiles) / Path("UTILMD5.2e.template"),
# maus_path=Path("edifact-templates/maus/FV2210/UTILMD/11218_maus.json"),
# )
#
# @pytest.mark.datafiles("./edifact-templates/edi/UTILMD/UTILMD5.2e.template")
# @pytest.mark.datafiles("../../machine-readable_anwendungshandbuecher/FV2210/UTILMD/flatahb/11219.json")
# @pytest.mark.datafiles("../unit_tests/migs/FV2210/segment_group_hierarchies/sgh_utilmd.json")
# def test_maus_creation_11219_52e(self, datafiles):
# create_maus_and_assert(
# flat_ahb_path=Path(datafiles) / "11219.json",
# sgh_path=Path(datafiles) / "sgh_utilmd.json",
# template_path=Path(datafiles) / Path("UTILMD5.2e.template"),
# maus_path=Path("edifact-templates/maus/FV2210/UTILMD/11219_maus.json"),
# )
Copy link
Contributor

Choose a reason for hiding this comment

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

still needed?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@hf-kklein hf-kklein requested a review from hf-krechan January 19, 2023 18:12
@hf-kklein hf-kklein merged commit ab45ff6 into main Jan 23, 2023
@hf-kklein hf-kklein deleted the ich_verbrenn_mein_studio branch January 23, 2023 07:26
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants