-
Notifications
You must be signed in to change notification settings - Fork 0
Conversation
…ch_verbrenn_mein_studio
This reverts commit 346f89e.
There was a problem hiding this 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
Outdated
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 |
There was a problem hiding this comment.
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"?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
src/maus/mig_ahb_matching.py
Outdated
append_next_data_elements_here: List[DataElement] | ||
append_next_sg_here: List[SegmentGroup] | ||
append_next_segments_here: List[Segment] |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
?
There was a problem hiding this comment.
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.
# 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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
still needed?
There was a problem hiding this comment.
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
# @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"), | ||
# ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
still needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# @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"), | ||
# ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
still needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Co-authored-by: kevin <[email protected]>
relates to https://github.com/Hochfrequenz/edifact-templates/pull/236